View Single Post
  #1  
Old 03-04-2008, 05:47 AM
qaz555 qaz555 is offline
Junior Member
GB Newbie
 
Join Date: Jan 2008
Posts: 9
Smile First batch file attempt

I want to write a batch file that will move files of a certain extension that are older than 30 days to an archive directory. For example, move all .txt files in C:\someFolder\otherFolder to D:\anotherFolder\archive that were created 30 or more days ago.

How can I get the current date to compare to the date the file was created?
How can I specify that only a certain type of file be moved?

Is this type of thing possible in a batch file or should I use something else?

Thanks for any help.
_________________
Girly Myspace Layouts farmers group class action lawsuit
Reply With Quote