I am looking for a bat file which when run through Windows Scheduler will perform this task:
Move files from a folder (rawdata) to a new folder (DataArchive/<date>) based on the creation date of the file.
So if there are 3 files in my folder "RawData":
a.txt - Creation Date 08/01/2012
b.txt - Creation Date 08/01/2012
c.txt - Creation Date 08/03/2012
Two folders should be created in a new folder called : "DataArchive"
Folder 1 = 08012012 -> Should contain files a.txt and b.txt
Folder 2 = 08032012 -> Should contain file c.txt
What would be the best way to take care of it? Code sample would be helpful.