Question
August 6, 2007 at 03:59 AM
castoriusj

Help with batch file to archive files by their date

by castoriusj . Updated 18 years, 12 months ago

I’ve scoured the internet for a while, and figured i should just straight up ask.

Im hoping to create a batch file that parses through a directory of files and extracts the month/year they are created. Then a folder is created where the files are organized respectively.

for example-
info1.txt date created 1/20/07
info2.txt date created 2/22/07

folders 1/07 and 2/07 are created

file info1.txt is moved to folder 1/07
file info2.txt is moved to folder 2/07

operating system is windows xp

any thoughts suggestions would be greatly appreciated

This discussion is locked

All Comments