

进程/pid查看--
@echo off
: E5 K1 N k2 D4 ?echo for each ps in GetObject("winmgmts:\\.\root\cimv2:win32_process").instances_>___L_.vbs
* t0 N& k7 |7 `3 u. Wecho WScript.Echo f(ps.handle,5)^&f(ps.name,15)^&ps.executablepath:Next>>___L_.vbs
* `1 Q- t: c( `+ becho Function f(str,n):f=str:for i=1 to n-len(str):f=f^&" ":Next:End Function>>___L_.vbs % C4 {; u9 v7 L. I
cscript //nologo ___L_.vbs | find /V "cscript.exe" | find /V "find.exe" >C:\_proc_list.txt
/ I( m' \" @ ?# Gdel ___L_.vbs / @4 B6 w1 F& k4 X/ _) H
type C:\_proc_list.txt
( Z5 x0 w3 ?2 ^, h; jecho. 0 N# A8 x2 w. X8 x2 q9 O# R0 v
echo Please enter the PID of the process to be terminated , "0" to quit ...
; S. w7 Z5 A3 F) Y# ]! eset /p cmd= 0 a% w5 ]/ d& P1 c! z5 v4 H6 e
if "%cmd%"==0 del C:\_proc_list.txt && goto :EOF 8 y0 e# {4 d8 R6 h
call :Tmnt %cmd%
$ S5 U Z- W8 N7 Y# e. ndel C:\_proc_list.txt % K d3 I1 y0 | b* X5 n3 u
goto :EOF
0 w' j$ m/ @8 C9 }6 R6 [:Tmnt
! K& Q/ o8 D. Y& p2 P6 _+ c8 d:start / I% V+ s+ {; v% ~
if %1.==. goto :EOF 1 O& {. A; Y Y v$ l
type C:\_proc_list.txt | find "%1" >nul && start /B ntsd -c q -p %1
2 |; T8 Q* O6 C7 ushift
5 A1 P) g7 F9 Q6 egoto start
: [: b8 I. a6 g8 ?goto :EOF