admin管理员组

文章数量:1531315

Windows下清理垃圾bat脚本

说明:复制下面语句到记事本,然后修改后缀名为(.bat),双击即可运行,也可选择管理员权限运行,如果在运行过程中发现有卡顿情况,按空格键即可。

注:不懂的朋友,运行需谨慎,若出现误删,吾概不负责!

@echo off 
echo 正在清除系统垃圾文件,请稍等...... 
del /f /s /q %systemdrive%\*.tmp 
del /f /s /q %systemdrive%\*._mp 
del /f /s /q %systemdrive%\*.log 
del /f /s /q %systemdrive%\*.gid 
del /f /s /q %systemdrive%\*.chk 
del /f /s /q %systemdrive%\*.old 
del /f /s /q %systemdrive%\recycled\*.* 
del /f /s /q %windir%\*.bak 
del /f /s /q %windir%\prefetch\*.* 
rd /s /q %windir%\temp & md %windir%\temp 
del /f /q %userprofile%\cookies\*.* 
del /f /q %userprofile%\recent\*.* 
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 
del /f /s /q "%userprofile%\Local Settings\Temp\*.*" 
del /f /s /q "%userprofile%\recent\*.*" 
echo 清除系统垃圾完成,按任意键退出!
echo. & pause 

本文标签: 脚本垃圾Windowsbat