Solved

move old files

Posted on 2010-08-16
3
463 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 150 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 55

Accepted Solution

by:
Bill Prew earned 350 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

690 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