Solved

move old files

Posted on 2010-08-16
3
461 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 54

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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