在批处理脚本中清除RAM

时间:2012-05-27 16:27:44

标签: batch-file

我一直想知道这个并且永远找不到答案,但是可以从批处理文件中清除你的RAM吗?

1 个答案:

答案 0 :(得分:0)

@echo off
echo.
echo.
echo.
echo            ))) = Kill All Processes execpt for those needed by SYSTEM.
echo.
echo            ( process name ) = Kill only process specified.
echo  ---------------------------------------------------------------------------
echo    Ex.
echo.
echo    iexplore.exe
echo    winchat.exe
echo.
echo.
echo    Process Name: iexplore.exe
echo    SUCCESS: The process "iexplore.exe" with a PID of 1353 was terminated.
echo ----------------------------------------------------------------------------
pause >nul
set a=
echo.
tasklist
echo.
echo.
set /p a=Process Name:
if %a%==))) goto :ALL
taskkill /f %a%

:ALL

taskkill /f ( *.* ) & exit