您的位置:首页 > 其它

MS-DOS 批处理清理垃圾文件

2011-09-25 13:35 711 查看
@echo off

color 9e

title %username%

del /f /q "%windir%\*.tmp"

del /f /q "%windir%\*.log"

del /f /q "%userprofile%\Recent\*.lnk"

del /f /q "%appdata%\Microsoft\Office\Recent\*.lnk"

rd /s /q %temp% & md %temp%

reg delete "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32" /f

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f

reg delete "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Wordpad\Recent File List" /va /f

@mshta vbscript:clipboardData.clearData()(close)

@mshta javascript:clipboardData.clearData();close()

@start explorer.exe "%userprofile%\Local Settings\Temporary Internet Files"

@start explorer.exe "%userprofile%\Local Settings\Temporary Internet Files\Content.MSO"

exit
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息