本帖最后由 jsliuhuawei 于 2014-2-6 13:22 编辑
下面这是别人写的:他说这里只做了显示的效果,想结束里程的话自己稍微修改下吧--------我想问下修改那里才能结束掉显示的进程 本人小白请写清楚谢谢大神们了。。。- @echo off
- SETLOCAL ENABLEDELAYEDEXPANSION
- for /f "skip=2 tokens=1" %%i in ('tasklist ^|more') do (
- set char1=%%i
- if !log1! equ 0 find /i "!char1!" "%~0" >nul 2>nul&&if ERRORLEVEL 0 set log1=1
- if !log1! equ 0 echo !char1!
- set log1=0
- )
- pause&&exit
- cmd.exe
- QQ.exe
- notpad.exe
- svchost.exe
- System
- System
- smss.exe
- csrss.exe
- winlogon.exe
- services.exe
- lsass.exe
- svchost.exe
- svchost.exe
- svchost.exe
- svchost.exe
复制代码
|