?
Solved

Bulk file move

Posted on 2008-10-22
4
Medium Priority
?
547 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
[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
4 Comments
 
LVL 4

Assisted Solution

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

Accepted Solution

by:
Gzzrt earned 1200 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

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…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

800 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