I want to create one bat
file that will move files from one location to one backup folder. Condition is I need to move all folders which are older than 30 days inside parent directory. Name of folder is creation date of folder.
For example: All files of 17 October 2012 would be there inside folder named 10172012.Source folders are:
C:\Data\DataIn\Processed\10172012
C:\Data\DataIn\Processed\09172012
C:\Data\DataIn\Processed\08172012
So on today bat file should move folders "09172012", "08172012" to destination backup folder:
D:\Backup\Processed\
Using shell scripting it was easier to do. Finally I implemented this using shell scripting.
Julian Day Numbers are described here: http://www.hermetic.ch/cal_stud/jdn.htm