新建一个txt文件,将下面代码复制进去,保存为.bat文件即可。
@echo offecho 正在清除系统垃圾文件,请稍等......del /f /s /q %systemdrive%*.tmpdel /f /s /q %systemdrive%*._mpdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /s /q %windir%*.bakdel /f /s /q %windir%prefetch*.*rd /s /q %windir%temp & md %windir%tempdel /f /q %userprofile%cookies*.*del /f /q %userprofile%recent*.*del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"del /f /s /q "%userprofile%Local SettingsTemp*.*"del /f /s /q "%userprofile%recent*.*"echo 清除系统垃圾文件完成!pause运行时,右键 使用管理员权限运行即可