How to delete a file depending on date Tags: File System Microsoft Windows Last response: July 8, 2004 11:43 AM in Windows 2000/NT Share tomas July 8, 2004 3:25:01 AM Archived from groups: microsoft.public.win2000.file_system (More info?) Hi I would like to delete files that has a date older than a month. Is there anyone who know any toll or script that can do that? More about : delete file depending date Anonymous July 8, 2004 11:43:46 AM Archived from groups: microsoft.public.win2000.file_system (More info?) On Wed, 7 Jul 2004 23:25:01 -0700, "Tomas" <Tomas@discussions.microsoft.com> wrote in microsoft.public.win2000.file_system: >I would like to delete files that has a date older than a month. >Is there anyone who know any toll or script that can do that? Here's how I delete files older than 30 days, using 4NT: DEL /[d-30,1980/1/1] I use this regularly to delete old log files and such. 4NT's date ranges are documented at <http://jpsoft.com/help/dateranges.htm> If you really want to delete files older than exactly one month, ask again - it will require a slightly more elaborate solution. But I suspect "older than 30 days" might suffice. -- Michael Bednarek http://mbednarek.com/ "POST NO BILLS" Can't find your answer ? Ask ! Publish Related resources : ForumFile Date ForumHey Toejam I got a file that I can't delete ForumDeleted file : How to retrieve ForumScript Question- Delete by date . Forumhow to find and delete adware ForumHow to delete a file run by Microsoft Windows Based Scrip Host Forumhow to delete a corrupted page file on an ntfs partition? ForumDeleted AVI file from USB hard drive!! How to get back? ForumHow to Recover Deleted SMS Messages from an iPhone 4S ForumDeleting Files by Date ForumHow to recover a deleted file off an external HDD? ForumAcer Drive D - Files - What are they, can I delete ? Forum"Cannot delete file : Cannont read from the source file or .. ForumCan't delete files/folders even though I am the owner/admin ForumHow do I do a rollback to a specific date ? ForumHow to completely delete hard drive? ForumParallel and com ports not appearing in device manager ForumCannot delete [filename] : Cannot find the specified file ForumCan't Delete File with Overlong Name ForumCan't access file "gapi.dll" More resources !