Solved

Modify Xcopy to copy only new files

Posted on 2008-10-22
3
2,271 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 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

14 Experts available now in Live!

Get 1:1 Help Now