Computer Hope

Microsoft => Microsoft DOS => Topic started by: ace7709 on December 17, 2013, 09:43:50 PM

Title: Batch file help please
Post by: ace7709 on December 17, 2013, 09:43:50 PM
I have three folders
1=0-30days
2=31-60days
3=61-90days

when i create a file it nameing convwention is H13123-Customer.Project.(xls,pdf,woc)
what I would like is a batch file to sort the files for me once I started the batch file
I need this to be based on when the file was modified
is this possible?
Title: Re: Batch file help please
Post by: foxidrive on December 17, 2013, 11:20:14 PM
forfiles can provide a list of file based on file age.

Do the sets of files in stages, one command for each set.
Oldest files first.