Jump to content

drivespacetotal for network drives


Recommended Posts

i am trying to get the disk space used on a network drive but it doesnt seem to be reporting the right amount of space

$var = DriveSpaceTotal( "\\Lao-nwcs_users3_server\Users3\Crsdesktop\GXM" )

MsgBox(4096, "Total Space on C:", $var & " MB")

Link to comment
Share on other sites

  • 4 weeks later...

Windows reports 2.93TB network share.

script returns 3080275.42578125 MB.....

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Link to comment
Share on other sites

i am trying to get the disk space used on a network drive but it doesnt seem to be reporting the right amount of space

How are you determining the correct amount, and how does it differ from what's reported?

2.93TB = 3080275MB, so it seems to be working for Kerros.

It works fine in my testing as well, so I'm not sure what's happening in your and weaponx's cases.

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...