PC Review


Reply
Thread Tools Rate Thread

Delete files in folder based on modified date.

 
 
richardkreidl@northwesternmutual.com
Guest
Posts: n/a
 
      27th Mar 2005
Let's say I have the following folder:
C:\Archive\Data\Logs\

and within this folder are many files in this format:
Cycle Run of Tuesday, February 01, 2005.html
Cycle Run of Wednesday, February 02, 2005.html
..
..
..
Cycle Run of Monday, February 28, 2005.html


The folder gets larger every day when a new file is created. What I
want to do is setup an application that would delete all the previous
month's files. I would setup an executable to run off a PC as a
'Scheduled Task' on the 28th of every month to delete the previous
month's files. So, example on the 28th of March it would delete all the
files that were created in February. I guess you would somehow use the
'Modified Date'?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell formatting based on date when value was last modified...? richardharwood@myway.com Microsoft Excel Programming 2 19th Jun 2006 04:05 PM
delete files based on date created =?Utf-8?B?Ui5Eb3V0aHdhaXRl?= Microsoft Access VBA Modules 0 7th Feb 2006 02:17 AM
Archive based not based on modified date =?Utf-8?B?cmludmVsdA==?= Microsoft Outlook Discussion 3 9th Jan 2006 08:51 PM
Delete files in folder based on modified date, but not others. richardkreidl@northwesternmutual.com Microsoft VB .NET 3 2nd May 2005 04:10 AM
Delete files based on date Jeff Jones Microsoft Windows 2000 File System 1 22nd Sep 2003 05:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:33 PM.