Tuesday 21 August 2012

Simple application to delete unwanted files(temporary files)

Please put the below code in a text file and save as .bat file. 




del /q /s  "c:\winnt\temp\*.*"
del /q /s  "c:\windows\temp\*.*"
del /q /s  "%USERPROFILE%\Local Settings\Temp\*.*"
del /q /s  "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*"
del /q /s  "%USERPROFILE%\.jpi_cache\file\1.0\*.*"
del /q /s  "%USERPROFILE%\.jpi_cache\jar\1.0\*.*"
del /q /s  "%USERPROFILE%\.jinit\*.*"
del /q /s  "%USERPROFILE%\Cookies\*.*"
Rmdir /q /s "%USERPROFILE%\Local Settings\Temporary Internet Files"
Rmdir /q /s "%USERPROFILE%\Local Settings\Temp"
Rmdir /q /s "%USERPROFILE%\Cookies\*.*"
Rmdir /q /s "c:\winnt\Temp"
Rmdir /q /s "c:\windows\Temp"
md  "%USERPROFILE%\Local Settings\Temporary Internet Files"
md  "%USERPROFILE%\Local Settings\Temp"
md  "%USERPROFILE%\Cookies"
md  "c:\winnt\Temp"
md  "c:\windows\Temp"


thanks......................