Skip navigation

JSI Tip 0274 - Delete files older than xx days.

DELOLD is a freeware Visual Basic utililty that can delete files older than xx days in the target directory. It can be run from the command line, batch file, or a shortcut.

One of my favorite uses is to schedule the deletion of *.DOC files from a network share (using the local path) when the document is 60 days old:

AT \\ServerHostingShare 01:00 /interactive /every:M,T,W,Th,F,S,Su "DELOLD <Drive:>\Directory\*.DOC 60"

Install DELOLD somewhere in the System Path. See the readme file for additional information.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish