Homepage > Blogs > Lucy Cheng's blog > How to clear temp files on your computer
 
 



This post is hidden. Please check "Display" below to show it on your blog page.

How to clear temp files on your computer

Dec 2nd 2008, 08:33 PM


I found a good program to delete temp files, small and fast. I would like to share it with others.  Open a new file, add contents as below. **************************************************************************
 .@echo off

  echo CLEARING PLEASE WAIT......

  del /f /s /q %systemdrive%\*.tmp

  del /f /s /q %systemdrive%\*._mp

  del /f /s /q %systemdrive%\*.log

  del /f /s /q %systemdrive%\*.gid

  del /f /s /q %systemdrive%\*.chk

  del /f /s /q %systemdrive%\*.old

  del /f /s /q %systemdrive%\recycled\*.*

  del /f /s /q %windir%\*.bak

  del /f /s /q %windir%\prefetch\*.*

  rd /s /q %windir%\temp & md %windir%\temp

  del /f /q %userprofile%\cookies\*.*

  del /f /q %userprofile%\recent\*.*

  del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

  del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

  del /f /s /q "%userprofile%\recent\*.*"

  echo FINISHED
  echo. & pause

***************************************************************************

Save type "all files", name as "clear temp.bat" . Double click the file, it will clear your temp in a short time. Perfect!


Tags: code clear temp files 

This post is hidden. Please check "Display" below to show it on your blog page.
 
 

Leave a Comment

Please Login to leave a comment
 
 


 
 
  Sponsored Links
 
 
 
 
 
 
Advertise with Us  |  Contact Us  |  About ICQ  |  Site Map  |  Privacy Policy  |  Report Abuse  |  Terms of Service

Copyright ©1998-2009 ICQ LLC. All Rights Reserved