Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Modify Xcopy to copy only new files

Posted on 2008-10-22
3
Medium Priority
?
2,280 Views
Last Modified: 2012-08-14
I need to modify this xcopy to copy only new and changed files.
xcopy c:\mp3 M:\mp3 /s /y /h

Open in new window

0
Comment
Question by:mickeyshelley1
[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
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
AmazingTech earned 2000 total points
ID: 22777124
/d without a date specified.
xcopy c:\mp3 M:\mp3 /s /y /h /d

Open in new window

0
 

Author Closing Comment

by:mickeyshelley1
ID: 31508764
Works Great thank you very much
0
 
LVL 21

Expert Comment

by:AmazingTech
ID: 22777791
Yeah the /d option is awesome. Although Microsoft also has another program called ROBOCOPY which has quite a bit more switches.

I would sometimes use a /l to list the new files to a text file before running it again without the /l so I have a log of which files are newer.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

688 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