Thursday, January 13, 2022

Delete Temp files - Windows XP and 7

 title Cleaning; please wait....
@echo
cd\
del "C:\Documents and Settings\%Username%\Cookies\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\Cookies\" /Q /S
md "C:\Documents and Settings\%Username%\Cookies\"
del "C:\Documents and Settings\%Username%\temp\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\temp\" /Q /S
md "C:\Documents and Settings\%Username%\temp\"
del "C:\Documents and Settings\%Username%\recent\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\recent\" /Q /S
md "C:\Documents and Settings\%Username%\recent\"
del "C:\Documents and Settings\%Username%\Local Settings\History\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\Local Settings\History\" /Q /S
md "C:\Documents and Settings\%Username%\Local Settings\History\"
del "C:\Documents and Settings\%Username%\Local Settings\History\History.IE5\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\Local Settings\History\History.IE5\" /Q /S
md "C:\Documents and Settings\%Username%\Local Settings\History\History.IE5\"
del "C:\Documents and Settings\%Username%\Local Settings\Temp\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\Local Settings\Temp\" /Q /S
md "C:\Documents and Settings\%Username%\Local Settings\Temp\"
del "C:\Documents and Settings\%Username%\Local Settings\Temporary Internet Files\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\Local Settings\Temporary Internet Files\" /Q /S
md "C:\Documents and Settings\%Username%\Local Settings\Temporary Internet Files\"
del "C:\Documents and Settings\%Username%\My Recent Documents\*.*" /F /Q /S
rd "C:\Documents and Settings\%Username%\My Recent Documents\" /Q /S
md "C:\Documents and Settings\%Username%\My Recent Documents\"
del "C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5\*.*" /F /Q /S
rd "C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5\" /Q /S
md "C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5\"
del "C:\WINDOWS\Temporary Internet Files\*.*" /F /Q /S
rd "C:\WINDOWS\Temporary Internet Files\" /Q /S
md "C:\WINDOWS\Temporary Internet Files\"
del C:\WINDOWS\Cookies\*.* /F /Q /S
rd C:\WINDOWS\Cookies\ /Q /S
md C:\WINDOWS\Cookies\
del C:\WINDOWS\Temp\*.* /F /Q /S
rd C:\WINDOWS\Temp\ /Q /S
md C:\WINDOWS\Temp\
del C:\TEMP\*.* /F /Q /S
rd C:\Temp\ /Q /S
md C:\Temp\
del index.dat /s /f /q
del *.tmp *.temp *.chk *.bak *.trc *.old *.$$$ *.~ *.~~~ /s /q /f