xcopy – Prevent Overwrite of files

Ever been in the situation that you had to copy a bunch of files, and later on wanted to copy only the added files by skipping the existing files?
You can do that with xcopy. Only not with the default paramaters.
For example:

echo n|xcopy f:\source_folder y:\destination_folder /E

The /E makes sure subfolders are also copied. The echo n| prevents overwriting of existing files.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.