![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Use a Script to Determine the Size of a Folder on a Remote Computer
|
||
strComputer = "atl-ws-01"
Set objWMIService = GetObject _ ("winmgmts:" & "!\\" & strComputer & "\root\cimv2") Set colFolders = objWMIService.ExecQuery _ ("Select * from Win32_Directory where Name = " _ & "'c:\\scripts'") For Each objFolder in colFolders Wscript.Echo objFolder.FileSize Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |