Move old files

  • Thread starter Thread starter Martin Cleaver
  • Start date Start date
M

Martin Cleaver

I want to clean up and move old files (e.g. more than 2 years
old) to a different directory structure. XCOPY has a date
function, but MOVE doesn't... is there a way (under WinXP to
say: move all files (also in subdirectories) dated before dd-mm-
yy to another directory while maintaining the tree structure?

Rgds

Martin
 
Martin Cleaver said:
I want to clean up and move old files (e.g. more than 2 years
old) to a different directory structure. XCOPY has a date
function, but MOVE doesn't... is there a way (under WinXP to
say: move all files (also in subdirectories) dated before dd-mm-
yy to another directory while maintaining the tree structure?

Use Xxcopy: http://www.xxcopy.com/

There's lots more date selection and other options than xcopy
but a basic move command would be something like:

xxcopy c:\src\ d:\dst\ /db:2002-12-31/s/rcy/pd0

Garry
 
Back
Top