请问一下这为什么一运行这三行代码就闪退啊
cmd吧
全部回复
仅看楼主
level 1
a7980963 楼主
for /f "tokens=2 " %a in ('tasklist /fi "imagename eq GATESRV.exe" /nh') do tskill %a
for /f "tokens=2 " %b in ('tasklist /fi "imagename eq MasterHelper.exe" /nh') do tskill %b
for /f "tokens=2 " %c in ('tasklist /fi "imagename eq StudentMain.exe" /nh') do tskill %c
2017年03月17日 10点03分 1
level 1
a7980963 楼主
这三行本意是获取PID后用tskill结束进程,代码打到cmd里没问题,但是批处理一运行就闪退,求教!
2017年03月17日 10点03分 2
level 5
系统运行不起。。。
2017年04月02日 15点04分 3
感谢回复,找到问题了,那里应该是a%%,不是a%
2017年04月10日 04点04分
1