Posted on January 8, 2009 by Daniel Petri in Administrative Tools and Scripts with 0 Comments


This command deletes all files from the specified directory that were last modified prior to the number of dates specified. The utility is very useful when scheduled to delete old log files.

Important: No spaces are to be specified in the directory path. Use MS-DOS style short names.

Requirements: Windows NT4/2000/XP/2003


Download (4kb)

You need to extract the tool/script found in the downloaded file by using WinZip or similar.



This sample would deletes all files in c:’logs that were last modified 60 days ago or earlier.

Detailed Instructions

  1. Place DelDate.exe in your system path folders.
  2. Use the above syntax.


No support of any sort will be given for this script/tool or for any other script/tool found on the website for that matter. If you need to contact us with any support issues, feedback or suggestions regarding the tool(s) and script(s) found on this page please write an e-mail to THIS address.


The software available from GanoTools is FREEWARE. It is not in the Public Domain. Asaf Ganot retains the copyright for this work. You can use it freely but do not claim it for your own or charge others money for it.

Use these tools at your own risk. They are provided for your own personal use and enjoyment and Asaf Ganot nor Daniel Petri nor do not provide any warranty for them, nor they will be held responsible for any result allegedly caused by use or misuse of any of the tools found on this page.

Back to the Tools and Scripts page.