求大神指教→_→这段哪里错了
bat吧
全部回复
仅看楼主
level 11
@echo off
:word
ping /n 127.0.0.1>nul
tasklist|findstr "dnf.exe"
if not %errorlevel%=="0" goto word
taskkill /f /im "dnf.exe"
2015年05月07日 13点05分 1
level 11
这段哪里有错了→_→
@echo off
:word
ping /n 127.0.0.1>nul
for %%i in (dnf.exe) do (tasklist|findstr "%%i"&if %errorlevel%=="128" goto word)
taskkill /f /im "dnf.exe"
2015年05月07日 13点05分 2
不存在的时候返还值是128[汗]
2015年05月07日 13点05分
level 11
@黄田杰 @aiwozhonghuaba[太开心]
2015年05月07日 13点05分 3
2015年05月07日 13点05分
level 11
1L /n后面少打了一个1手贱→_→ 不管有没有 都是错误 一闪而过[泪]
2015年05月07日 13点05分 4
1