回复 1# watson
2.vbs | Set oShell = CreateObject("WScript.Shell") | | Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2") | | sCmd = "/k " & Left(CreateObject("Scriptlet.TypeLib").Guid, 38) | | oShell.Run "%comspec% " & sCmd, 0 | | Set oChldPrcs = oWMI.ExecQuery("Select * From Win32_Process Where CommandLine Like '%" & sCmd & "'",,32) | | For Each oCols In oChldPrcs | | lOut = oCols.ParentProcessId | | oCols.Terminate | | Exit For | | Next | | MsgBox lOutCOPY |
|