Solved

Bulk file move

Posted on 2008-10-22
4
542 Views
Last Modified: 2011-10-19
I would like to move all data older than a specific date (in effect archiving off data)

I thought it might be possible to do it in xcopy, but i am not sure of the switches i would need to use, can anyone give me a clue on how to do this or what alternative I could use to move the files.

The files are all held on shared folders and the plan is to move these just once, as they were files transfered from a migration.
0
Comment
Question by:cntboys
4 Comments
 
LVL 4

Assisted Solution

by:teptech
teptech earned 200 total points
ID: 22776618
0
 
LVL 1

Accepted Solution

by:
Gzzrt earned 300 total points
ID: 22776629
I would recommend using Robocopy is available as a download from Microsoft.

http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

There is an option which will let you specify the age of the file that you either want to include or to exclude.  A potential command would be: prompt>robocopy source destination /minage:n where n is the number of days.  

You can also get a full list of switches by using the tried and true robocopy /?
0
 
LVL 3

Expert Comment

by:Blackninja2007
ID: 22776630
looking at the XCopy the only option ( /D:m-d-y) to copy by date does it for dates on of after m-d-y ... I do not believe it can be used to copy before a date). I have attached the Xcopy Switch decription for you in the attached file.


text.txt
0
 

Author Comment

by:cntboys
ID: 22777048
Split the points, cheers
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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