Solved

Modify Xcopy to copy only new files

Posted on 2008-10-22
3
2,275 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
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
AmazingTech earned 500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
ncftpget copy files from remote server to my local drive 4 52
DOS command won't run from WScript.Shell 8 60
Question to Zip 8 90
DOS - Automated Tree Structure Creation 10 93
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…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

792 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