【发布时间】:2013-01-08 07:18:19
【问题描述】:
我想知道通过 tcl 编码检索 windows 中所有可用 pid 的方法。这是我需要根据它是否可用来杀死进程吗? 感谢您。 代码:
proc stopprogressbar {} {
variable n_progressWinPid;
if {[info exists n_progressWinPid]} {
if {$n_progressWinPid > 0} {
if {[lsearch [GETALLPIDS] $n_progressWinPid] >= 0} {
catch {exec [auto_execok taskkill] /PID $n_progressWinPid}
}
}
}
}
【问题讨论】: