Temporary files, or foo files (.TMP), are files created to temporarily contain information while a new file is being made.
Cleaning temp files is a headache for somebody. One has to use run or directly go to temp file to clean it. Or one may use software to clean temp file.
So here is some code that may help you cleaning temp file with single click.To make PC faster we need to clean temp file.For cleaning this files we should take following steps:
- Open notepad
- write:
del "C:\WINDOWS\Temp" /s /q
del "C:\WINDOWS\Temp" /s/ah /q
del "C:\Documents and Settings\Administrator\Recent" /s /q
del "c:\Documents and Settings\Administrator\local settings\temp" /s /q
del "c:\Documents and Settings\Administrator\local settings\history" /s /q
del "c:\Documents and Settings\Administrator\local settings\temporary" /s /q
del "C:\Documents and Settings\Administrator\Application Data\Microsoft\Office\Recent" /s /q
del "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files" /s /q
del "C:\Documents and Settings\Administrator\Recent" /s /q
del "c:\user\Administrator\local settings\temp" /s /q
del "c:\user\Administrator\local settings\temp" /s/ah /q
del "c:\user\Administrator\local settings\history" /s /q
del "c:\user\Administrator\local settings\temporary" /s /q
del "c:\user\Administrator\local settings\history" /s/ah /q
del "c:\user\Administrator\local settings\temporary" /s/ah /q
del "C:\user\Administrator\Application Data\Microsoft\Office\Recent" /s /q
del "C:\user\Administrator\Local Settings\Temporary Internet Files" /s /q
del "C:\user\Administrator\Application Data\Microsoft\Office\Recent" /s/ah /q
del "C:\user\Administrator\Local Settings\Temporary Internet Files" /s/ah /q
del "c:\user\Administrator\Cookies" /s /q
del "c:\user\Administrator\Cookies" /s/ah /q
del "C:\WINDOWS\system32\1054? /s /q
del "c:\windows\prefects" /s /q
del "C:\Program Files\Uninstall Information" /s /q
del "c:\Documents and Settings\Administrator\Cookies" /s /q
del "C:\WINDOWS\Offline Web Pages" /s/q
del "C:\WINDOWS\Prefetch" /s/q
del "C:\WINDOWS\Prefetch" /s/ah /q
del "C:\WINDOWS\system32\wbem\Logs\*.log" /s/q
del "C:\WINDOWS\*.log" /s/q
@end
@del /F/S/Q %temp%
@del /F/S/Q %windir%\temp
@del /F/S/Q "C:\Documents and Settings\anisur\Recent"
@Echo off
Echo.
Echo Complete
Echo.
@echo off
if %username% == Administrator.WINDOWS goto admin
REM ** Delete User Files **
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Recent"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temp"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5"
goto end
:admin
REM ** Do some extra stuff here **
REM ** What ever you want..... **
ECHO You are a Administrator
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Recent"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temp"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5"
REM ** Do more stuff here **
REM ** Blah, blah, blah......**
:end
msg %username% "Remover-By Administrator"
exit
pause
del "C:\WINDOWS\Temp" /s/ah /q
del "C:\Documents and Settings\Administrator\Recent" /s /q
del "c:\Documents and Settings\Administrator\local settings\temp" /s /q
del "c:\Documents and Settings\Administrator\local settings\history" /s /q
del "c:\Documents and Settings\Administrator\local settings\temporary" /s /q
del "C:\Documents and Settings\Administrator\Application Data\Microsoft\Office\Recent" /s /q
del "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files" /s /q
del "C:\Documents and Settings\Administrator\Recent" /s /q
del "c:\user\Administrator\local settings\temp" /s /q
del "c:\user\Administrator\local settings\temp" /s/ah /q
del "c:\user\Administrator\local settings\history" /s /q
del "c:\user\Administrator\local settings\temporary" /s /q
del "c:\user\Administrator\local settings\history" /s/ah /q
del "c:\user\Administrator\local settings\temporary" /s/ah /q
del "C:\user\Administrator\Application Data\Microsoft\Office\Recent" /s /q
del "C:\user\Administrator\Local Settings\Temporary Internet Files" /s /q
del "C:\user\Administrator\Application Data\Microsoft\Office\Recent" /s/ah /q
del "C:\user\Administrator\Local Settings\Temporary Internet Files" /s/ah /q
del "c:\user\Administrator\Cookies" /s /q
del "c:\user\Administrator\Cookies" /s/ah /q
del "C:\WINDOWS\system32\1054? /s /q
del "c:\windows\prefects" /s /q
del "C:\Program Files\Uninstall Information" /s /q
del "c:\Documents and Settings\Administrator\Cookies" /s /q
del "C:\WINDOWS\Offline Web Pages" /s/q
del "C:\WINDOWS\Prefetch" /s/q
del "C:\WINDOWS\Prefetch" /s/ah /q
del "C:\WINDOWS\system32\wbem\Logs\*.log" /s/q
del "C:\WINDOWS\*.log" /s/q
@end
@del /F/S/Q %temp%
@del /F/S/Q %windir%\temp
@del /F/S/Q "C:\Documents and Settings\anisur\Recent"
@Echo off
Echo.
Echo Complete
Echo.
@echo off
if %username% == Administrator.WINDOWS goto admin
REM ** Delete User Files **
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Recent"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temp"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5"
goto end
:admin
REM ** Do some extra stuff here **
REM ** What ever you want..... **
ECHO You are a Administrator
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Recent"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temp"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\History\History.ie5"
rmdir /S/Q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\content.ie5"
REM ** Do more stuff here **
REM ** Blah, blah, blah......**
:end
msg %username% "Remover-By Administrator"
exit
pause
- Than save as ".bat"