Dave Pearce
2009-12-17 13:09:01 UTC
Hello wonder if you can help.
I have a folder with lot's of files written in it from 2005-present day.
What i need to script is move files from this location and sort them by years
whilst keeping the existing structure. I have looked at the syntax of xcopy
and robocopy but not sure whats the best way to move forward for exmaple
d:\docs\word\file1.doc (created in 2006) would move to d:\2006\word\file1.doc
d:\docs\excel\john\file2.xls (created in 2005) would move to
d:\2005\excel\john\file2.xls
And so on. I can make the script once i have an idea on the best way to take
it forward.
Many Thanks in advance.
Regards
Dave
I have a folder with lot's of files written in it from 2005-present day.
What i need to script is move files from this location and sort them by years
whilst keeping the existing structure. I have looked at the syntax of xcopy
and robocopy but not sure whats the best way to move forward for exmaple
d:\docs\word\file1.doc (created in 2006) would move to d:\2006\word\file1.doc
d:\docs\excel\john\file2.xls (created in 2005) would move to
d:\2005\excel\john\file2.xls
And so on. I can make the script once i have an idea on the best way to take
it forward.
Many Thanks in advance.
Regards
Dave
--
ICT Development
ICT Development