@echo off
del /f /q "%userprofile%/Cookies/*"
del /f /q "%userprofile%/Recent/*"
echo CLEANING TEMP FILES...
for /R "%systemroot%/temp/" %%I in (.) do rd /S /Q "%%I"
for /R "%temp%" %%I in (.) do rd /S /Q "%%I"
echo CLEANING CACHE FOR INTERNET...
for /R "%userprofile%/Local Settings/Temporary Internet Files" %%I in (.) do rd /S /Q "%%I"
echo CLEANING CACHE...
for /R "C:/Program Files/YouKu/iKu/ikudisk" %%I in (.) do rd /S /Q "%%I"
for /R "D:/vod_cache_data" %%I in (.) do rd /S /Q "%%I"
for /R "D:/TEMP/vod_cache_data" %%I in (.) do rd /S /Q "%%I"
for /R "D:/ikudisk" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/Alitalk/Cache" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/Alitalk/UpdateDownloadTemp" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/Alitalk/UpdateTemp" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/WangWang/Cache" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/WangWang/UpdateDownloadTemp" %%I in (.) do rd /S /Q "%%I"
for /R "E:/Program Files/Alisoft/WangWang/UpdateTemp" %%I in (.) do rd /S /Q "%%I"
for /R "%userprofile%/Local Settings/Application Data/Google" %%I in (.) do rd /S /Q "%%I"
for /R "%userprofile%/Application Data/Sun/Java/Deployment/cache" %%I in (.) do rd /S /Q "%%I"
echo CLEANING MSN CACHE...
set usermsn=这里请填入您的MSN账号
del /f /q "%USERPROFILE%/Application Data/Microsoft/IdentityCRL"
del /f /q "%ALLUSERSPROFILE%/Application Data/Microsoft/IdentityCRL"
del /f /q "%USERPROFILE%/Local Settings/Application Data/Microsoft/Windows Live Contacts"
del /f /q "%USERPROFILE%/Contacts"
del /f /q "%USERPROFILE%/Local Settings/Application Data/Microsoft/Messenger/%usermsn%/Sharing Folders"
del /f /q "%USERPROFILE%/Local Settings/Application Data/Microsoft/Messenger/%usermsn%/SharingMetaData"
set fileset=*.??$,*.??~,*.~*,*.*~,chklist.*,*.chk,*.ftg,*.fts,*.fdn,*.gid,*.old,*.err,*.log,*.tmp,~*.*,*._mp,*.dmp,*.wbk,*.xlk,*.mch,*.$*,*.$$$,*.@@@,*.---,0???????.nch,~$*.*
echo CLEANING DRIVE C...
for /R C:/ %%I in (%fileset%) do del /f /q "%%I"
echo CLEANING DRIVE D...
rem for /R D:/ %%I in (%fileset%) do del /f /q "%%I"
echo CLEANING DRIVE E...
rem for /R E:/ %%I in (%fileset%) do del /f /q "%%I"
请将上述脚本保存到一个.BAT文件中,您也可根据自己的情况,在上述脚本的尾部增加对其它驱动器或特定目录的删除操作。垃圾文件涉及的文件类型是参考Windows优化大师中的设置,在此对该优秀软件的帮助表示感谢!