日期:2014-05-17 浏览次数:20675 次
@echo off
for /f %%a in ('tasklist ^
------解决方案--------------------
findstr /i "OUTLOOK.EXE.*[1-9]..,....K"') do (
taskkill /f /im %%a
start "" "c:\Program Files\Microsoft Office\Office14\OUTLOOK.EXE"
)
@echo off
:loop
tasklist /fi "imagename eq a.exe" /fi "memusage ge 102400" >nul 2>nul && (taskkill /f /im a.exe & start "" "c:\a.exe")
ping -n 1 -w 1000 0.1 >nul
goto loop