Solved

Bulk file move

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
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…
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…

685 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