Monday, April 29, 2013

How to Clean Temp Folders

We have already discussed how to clean temp folders in this blog. But there are more ways to clean temp folders, and here we'll show one more of them. You can see the batch file that will clean all temporary files on your computer below.

cd %windir%\Temp
del /s /q %windir%\Temp\*.*
md %windir%\Temp


cd %userprofile%\AppData\Local
del /F /S /P %userprofile%\AppData\Local\*.tmp
md %userprofile%\AppData\Local

cd %userprofile%\AppData\Local\Temp
del /F /S /P %userprofile%\AppData\Local\Temp\*.tmp
md %userprofile%\AppData\Local\Temp

cd %userprofile%\AppData\LocalLow
del /F /S /P %userprofile%\AppData\LocalLow\*.tmp
md %userprofile%\AppData\LocalLow

cd %userprofile%\AppData\Roaming
del /F /S /P %userprofile%\AppData\Roaming\*.tmp
md %userprofile%\AppData\Roaming


This batch file is suitable for Windows Vista and newer operating systems.
We kindly remind that Dr.Batcher is the best program to create batch file, both .BAT and .CMD, try it if haven't tried it yet. 

No comments:

Post a Comment

Translate