Sign in to follow this  
Followers 0
gcue

drivespacetotal for network drives

5 posts in this topic

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")

Share this post


Link to post
Share on other sites



Hmm...for me it is returning 49,002 MB on an 80 GB drive. Not sure.

Share this post


Link to post
Share on other sites

does anyone else have any insight to this?

thanks.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0