CleanUp

This command line utility is intended to keep a directory cleaned of abandoned files.  Originally intended to be run on a schedule on the Temp directory, but could have wider applications.

Syntax:   Cleanup <path> [/DelOver:n] [/Empties] [/Hidden] [/Test]

<path>The path to the directory to be processed.
SwitchAll switches are optional
/DelOver:nDelete files over n full days old.
/EmptiesDelete empty files and directories.
/HiddenHidden files and directories will also be processed.
/TestDisplays files and directories that would be deleted.

Switches may be shortened to one character.  For example: Cleanup %temp% /d:7 /e /h will delete everything in the temp folder that has not been opened or changed in the last 7 days, including hidden files and folders, but not the folder itself.  Note: System files are never deleted.

Installation

  1. I’m sorry but I don’t have a way to “sign” this application.
  2. Click Download and move cursor to the download window.
  3. Click on three dots > Keep > Blue button right of “Delete.”
  4. Click on “Keep Anyway” > “Open File”
  5. Click on the link “More info” > “Run anyway.”
  6. Click on “Yes” > “I agree” > “Yes” > “Install” > “Close.”
  7. The application will be installed using the Windows Installer which means the application can be uninstalled like any other application.