![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Retrieve the Path to the windir Folder on a Computer
|
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From Win32_OperatingSystem") For Each objItem in colItems Wscript.Echo objItem.WindowsDirectory Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |