?
Solved

move old files

Posted on 2010-08-16
3
Medium Priority
?
464 Views
Last Modified: 2013-11-09
is there command similar to xcopy to move files older then some date to another folder, creating the same folder structure as in original folder.  
0
Comment
Question by:Larissa T
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Assisted Solution

by:mchieff
mchieff earned 600 total points
ID: 33450528
Robocopy.
Its included with Vista/7 but you'll need the XP resource kit if you have XP.
The command would be "robocopy *source* *destination* /maxage:180 /move"
This would move all files and directories older than 180 days.
The command supports dates as well.
Just run "robocopy /???" for usage
0
 
LVL 56

Accepted Solution

by:
Bill Prew earned 1400 total points
ID: 33450552
I would agree, most people would use ROBOCOPY for that task.  If you don't have a copy, it is included in the Robocopy GUI add on tool at this link:

http://technet.microsoft.com/en-us/magazine/2006.11.utilityspotlight.aspx

In addition, there is another similar tool that claims to be more powerful, but it hasn't seemed to catch on quite as well:

http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

Lastly, I use a third party tool called XXCOPY that is also very good at these types of things.  There is a free version for personal use.

http://www.xxcopy.com/index.htm

~bp
0
 
LVL 11

Author Closing Comment

by:Larissa T
ID: 33451553
Thanks
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question