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'?
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'?