Showing posts with label temp folder cleaning. Show all posts
Showing posts with label temp folder cleaning. Show all posts

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. 

Monday, March 25, 2013

Clean AVG Temporary Files via Batch File

AVG is a great free antivirus quite popular among the users of Dr.Batcher. You can find it here. But as every software, it leaves sometimes some temporary files that should be cleaned manually by its user. Batch files are the best way to clear AVG temporary files.
Here is a small batch file that will help you to clean AVG temporary files:
CD "C:\Program Files (x86)\AVG\AVG8\"
avgcfgex.exe /command=19
CD C:\ProgramData\avg8\scanlogs
DEL C:\ProgramData\avg8\scanlogs\*.* /s /q
MD C:\ProgramData\avg8\scanlogs
CD C:\ProgramData\avg8\update\backup
DEL C:\ProgramData\avg8\update\backup\*.* /s /q
MD C:\ProgramData\avg8\updata\backup
ECHO Successfully Deleted All AVG Temp Update Files...
PAUSE

We kindly remind that Dr.Batcher is the best program to create batch file, try it if haven't tried it yet.

Monday, February 18, 2013

Batch File to Clean Temp Folder

It is necassary sometimes to clean temporary files because they can waste large amount of space on your system drive. You can download one of system cleaners or even pay to its developer. But you should be aware of different kinds of malware in these cleaners. It is much better to use a simple batch script like this:
REM ********************************************
REM * Cleaning example script *
REM ********************************************
REM * This script shows how to clean the folder*
REM * from temporary files *
REM ********************************************
REM This string specifies that no details will be shown
@ECHO off
REM Change current forder to the temp folder
CD TEMP
REM Delete all files with extension starting with ~
DEL *.~*
REM Delete all files with extension TMP
DEL *.tmp
REM Add your extensions!
ECHO Press Enter!
PAUSE
EXIT
Hope this script is quite simple and you can understand what it does from the comments, but if you have any questions you are always welcome. Leave comments under this post or send a letter to support@m-w-c-s.com.
Want to learn how to create batch file? Subscribe our RSS feed!

Translate