Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch File to delete outdated files 2

Status
Not open for further replies.

mbusa

MIS
May 26, 2005
68
US
I dotn know if this is the right plaxe to post this but here we go !


I have folder with about 100 files. I need a batch file which would check to see which files are more than a month old and delete them leaving the fresh files intact.

any ideas ?

[highlight]M.Bajwa
[/highlight]
 
mbusa,
how do you determin the age of the files? is it in the fiel name? creation date? last modified date? last accessed date?
regards,
longhair
 
longhair,

A very nice listing of earlier articles by forum members on this issue. I am an unabashed fan of tsuji, and markdmac.

Thank you and a star.

 
bcastner,
thank you.
when people have done it before, done it correctly and are kind enough to share we should let them take the credit for their work. if any of their solutions help mbusa - i hope he / she will reward them with a star(s).
markdmac has posted some excelent solutions.
regards,
longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top