Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Find the Process ID Associated with a Batch FileContent of Find the Process ID Associated with a Batch File.vbsMD5 Hash: ACC9DB12F4A02C9A21FCC0E4A30C67D8 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From Win32_Process") For Each objItem in colItems If InStr(objItem.CommandLine, ".bat") Or InStr(objItem.CommandLine, ".cmd") Then Wscript.Echo "Batch file: " & objItem.CommandLine Wscript.Echo "Process ID: " & objItem.ProcessID End If Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |