
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard]wmic process where executablepath='C:\\Program Files\\Java\\jre1.6.0\\bin\\java.exe' call terminate
| Quote: | |
|
CODE: [Copy to clipboard]strPath="iServerJava\thirdparty\jdk\bin\java.exe"
Set objWMIService=GetObject("winmgmts:\\.\root\cimv2")
Set colProcessList=objWMIService.ExecQuery("Select * from " & _
"Win32_Process Where Name='java.exe'")
For Each objProcess in colProcessList
If InStr(LCase(objProcess.ExecutablePath),LCase(strPath)) Then objProcess.Terminate
Next
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |