Solved

Bulk file move

Posted on 2008-10-22
4
540 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now