Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Append a Location to the Path Environment VariableContent of Append a Location to the Path Environment Variable.vbsMD5 Hash: 129E4C39073FF2E570BC161C06CC888A |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * From Win32_Environment Where Name = 'Path'") For Each objItem in colItems strPath = objItem.VariableValue & ";C:\Scripts\" objItem.VariableValue = strPath objItem.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |