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
DelDate c:'logs 60
This sample would deletes all files in c:’logs that were last modified 60 days ago or earlier.
- Place DelDate.exe in your system path folders.
- 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 Petri.co.il 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 Petri.co.il 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.
More in Administrative Tools and Scripts
Delivering High Availability in the Hybrid Cloud
Mar 13, 2019 | Michael Otey
Introduction to the IT Roadmap Planning Tool for Microsoft 365
Feb 16, 2018 | Juan Carlos-Gonzalez Martin
Sponsored: Conquering Remote Desktop Challenges
Dec 21, 2017 | Michael Otey
Avoiding Accidental Changes with PowerShell's WhatIf and Confirm Parameters
Jun 12, 2017 | Missy Januszko
Migrate Content from Docs.com to OneDrive for Business
Jun 12, 2017 | Jussi Roine
Improving The User Provisioning Process
Nov 18, 2015 | Petri IT Knowledgebase
Most popular on petri