Link to home
Start Free TrialLog in
Avatar of veedar
veedarFlag for United States of America

asked on

Help with Script

Hi,
I'm told this will report free space on my C drive...

Set objWMIService = GetObject("winmgmts:")
Set objLogicalDisk = objWMIService.Get("Win32_LogicalDisk.DeviceID='c:'")
Wscript.Echo objLogicalDisk.FreeSpace

...I need it spelled out to me how I can run this code from a DOS window?

Also I'm just getting into Windows scripting. is there any on-line resource you can suggest to help. Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands 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 veedar

ASKER

bruintje thanks a bunch!
you're welcome, thanks for the grade and the 1776 points

thats a curious date in history > http://en.wikipedia.org/wiki/1776

many valuable texts where published that year, at least those which we should take our cue from these days ;-)