Is it possible to copy a set of files, but automatically skip if file already exists?

Posted by awe on Super User See other posts from Super User or by awe
Published on 2011-01-17T10:27:23Z Indexed on 2012/04/03 23:32 UTC
Read the original article Hit count: 233

I know that the copy command has an option to automatically replace a file if it already exists, but I want to know if it is a way to copy the files only if they not already exist (/Y). I do not know the actual file names in the batch code, as I copy from the source using wildcards in the copy command:

copy *.zip c:\destination

The reason I want this instead of automatic overwrite is that the files are large, and to skip existing would save a lot of execution time.

© Super User or respective owner

Related posts about Windows

Related posts about windows-vista