Modify Xcopy to copy only new files

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

Who is Participating?
AmazingTechConnect With a Mentor Commented:
/d without a date specified.
xcopy c:\mp3 M:\mp3 /s /y /h /d

Open in new window

mickeyshelley1Author Commented:
Works Great thank you very much
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.