PR

バッチファイル|不要ファイル削除(WinXP)

WindowsXPで不要ファイルを削除するバッチファイルのサンプルです。ゴミ箱も空にしますので注意してください。

スポンサードリンク

@echo off
cls

RMDIR C:\RECYCLER /S /Q >NUL
del "%temp%\*.*" /q /s >NUL
del "%tmp%\*.*" /q /s >NUL
del "C:\Documents and Settings\%username%\Local Settings\temp\*.*" /q /s >NUL
del "C:\Documents and Settings\%username%\Local Settings\tmp\*.*" /q /s >NUL
del "C:\Documents and Settings\%username%\Recent\*.lnk" /Q >NUL
del "C:\Documents and Settings\%username%\Local Settings\Application Data\IconCache.db" /AH /F /Q >NUL
del "C:\Documents and Settings\%username%\Local Settings\Application Data\GDIPFONTCACHEV1.DAT" /F /Q >NUL
del "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files\Content.IE5\*.*" /Q /S >NUL
del "C:\Documents and Settings\%username%\Application Data\Macromedia\Flash Player\*.*" /q /s >NUL

echo 完了しました

コメント