Tuesday 13 March 2012

Clear all temp file through bat file

Clean all temp file by use of bat file


By use of single file you can clean all temp file.
The step is following.
1 Open Notepad and write following code.


@ echo off & cd /d %userprofile%\locals~1\temp & del /Q /s *.* & cd /d %windir%\temp & del /Q /s *.* & cd /d %windir%\Prefetch & del /Q /s *.* & cd /d %userprofile%\Local Settings\Temporary Internet Files & del  /f /Q /s /a *.* & cd /d %windir%\system32\dllcache & del /Q /s *.* & exit



2 after write code simply save file as bat file type. Write Like tempclean.bat without bat it’s not work.


 How it's work.

In the bat file all code are dos command. So when you run it fire all dos command and by use of it the all file are clean.

No comments:

Post a Comment