Link to home
Start Free TrialLog in
Avatar of far182
far182

asked on

Need a VBScript to check free disk space of a UNC path and return the results in GB

Hello.  I need a VBscript (VBS) that will report back the free disk space (in gigabytes) of a UNC path I feed it.  I would execute the VBscript with a single argument and the argument would be the UNC path I would want to check free space.  The script would need to write the result, simply just the number, to the shell.  

For example this is how I would like to execute the vbscript:

myVBScheckDiskSpace.vbs \\server1\share

Here is an example result I am looking for:

17

I would be executing this VBScript at the command prompt.  I need this script in a quick hurry so I am assigning the maximum points.  I appreciate they help.

Thank You
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of far182
far182

ASKER

While this didn't provide everything I was looking for, you gave me the missing things I needed to get this done.  Thank you.