EraseTemp 3.4.1.3 XP/Vista/Win7


This is an interesting tool that Madhur Kapoor brought us via his blog, whoismadhur.com.  The tool is EraseTemp by No Design software.  EraseTemp will automatically delete old from your computer, and I know your saying there are and tools to do this already but EraseTemp is designed to run from command line interface (CLI) so it can be used as a scheduled task within .  The CLI switches are fairly simple but flexible, and they are as follows.

EraseTemp.exe [/Temp] [/Dump] [/Path:"C:\Temp"] [/SubFolders:"C:\Download"] [/Days:2] [/FilesToKeep:3] [/KeepFolders] [/KeepReadOnly] [/NoSub] [/IgnoreLastAccessed] [/HideSkipped] [/RegEx:".*\.txt"] [/Log:"C:\Log.txt"] [/LogDate]] [/Minimized] [/Silent] [/NoClose] [/Test] [/?]

/Temp Erase the default TEMP Directory (Default)
/Dump Erase dump and DrWatson files (Default)
/Path Erase a specific directory
/SubFolders Removes emtpy subdirectories
/Days Days to keep (1 is default)
/FilesToKeep Files to keep in each folder (0 is default)
/KeepFolders Keeps subfolders but deletes the files (not for /SubFolders)
/KeepReadOnly Keeps read only files and folders
/NoSub Don’t delete files in subfolders
/IgnoreLastAccessed Only looks at last modified
/HideSkipped Does not display skipped files
/RegEx Delete only the files that matches the RegEx
/Log Logs the names of the deleted files
/LogDate Adds date to the logfile
/Minimized Run minimized
/Silent No output to the screen
/NoClose Don’t close the program automatically
/Test Test mode, nothing will be deleted
/? This information

Though it is mainly a CLI tool there is a small GUI included also that will show your file details.  And as you can see here it will show your files that were (or will be in this case because I run in /test mode for this shot.)

EreaseTempTestmode

and the total space cleaned

EreaseTempTestmode2

Now how can this be setup for a or as ?

well here is the test job I setup just to see what would be cleaned.
EraseTemp.exe /test /NoClose /Days:3
/Test Test mode, nothing will be deleted
/NoClose does not close the GUI when the test finishes
/Days:3 only deletes files three days and older.

And the would look like
EraseTemp.exe /Silent /Days:3
When you open Task Scheduler and create a new task and fill details like below. NOTE: Make sure you check “Run with highest Privileges” so the job can access the c:\windows\temp\ directory.

task1

Next go to Triggers->New and Pick your time and schedule of when you want the task to run.

task2

Next go to Actions->New and fill in the requirements.

task3

Lastly click OK and this will setup your task to keep your system clean.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • PDF

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

, , , , ,

  1. No comments yet.
(will not be published)

Comments are closed.