快速清空TEMP临时文件夹所有文件方法 - 鼎峰VPS 帮助中心
快速清空TEMP临时文件夹所有文件方法
文章分类: [Windows] 发布时间:2015-6-12 23:57 Friday 浏览(671)

1.在桌面上新建一个文本文档,复制以下内容到文本文档内:

 @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 清除系统LJ完成! 
echo. & pause

 

2.保存,重命名“新建文本文档.txt”为“清理TEMP.bat”

3.双击.执行“清理TEMP.bat”

1.png

标签: 清空TEMP