Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine the Percentage of Free Space on a DriveContent of Determine the Percentage of Free Space on a Drive.vbsMD5 Hash: 8C190DC2B26A5F1B0994B57EF583D054 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colDisks = objWMIService.ExecQuery _ ("Select * from Win32_LogicalDisk Where DeviceID = 'C:'") For Each objDisk in colDisks Wscript.Echo objDisk.FreeSpace Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |