zipping files based on date stamp.
Posted on 2011-02-16
I am trying to write a .bat file that will zip files based on modified date, and sorted into monthy zip files.
I have multiple directories that contain years of files.
I would like the .bat file to zip those files based on the month and year modified.
The output would be 062008.zip for all the files modified in the sixth month of 2008, 072008.zip for the files modified in the seventh month of 2008, and so on.
At the end, I would like to delete each of the files that are now zipped.
This is on Windows Server 2008 r2.
I currently use 7zip and doing it by hand, but this process will take months to complete.