Delete old files

[Closed]
Report
Posts
1
Registration date
Wednesday June 4, 2014
Status
Member
Last seen
June 4, 2014
-
Hello, Im looking for a script, preferably a batch file, that will delete select files of a certain date.

i.e.
access.logxxxxxxx where the x is a number, the files that are two months old need to be deleted. Is there a way to select a file created or modified in a certain month?

Also is there a way to confirm that the correct files are going to be deleted before they are deleted.

Im new at scripting and this is a little over my head.

Subscribe To Our Newsletter!

The Best of CCM in Your Inbox

Subscribe To Our Newsletter!