Xcopy switch to overwrite older but not newer files?

J

Jack

Is there an Xcopy switch for automatically overwriting older files while
automatically NOT overwriting newer files?

If I use xcopy /e /i
I get the results I want except that I don't want to be prompted on whether
or not to overwrite a file. If the file is older, I want to automatically
overwrite, but if same date or newer, I want to automatically not overwrite.

Jack
 
X

Xlnt

Jack said:
Is there an Xcopy switch for automatically overwriting older files while
automatically NOT overwriting newer files?

If I use xcopy /e /i
I get the results I want except that I don't want to be prompted on
whether or not to overwrite a file. If the file is older, I want to
automatically overwrite, but if same date or newer, I want to
automatically not overwrite.

The switches /d/y should do the trick.

Xlnt
 
G

Guest

In particular, note the part where it talks about not suppying a date after
the /D option.

|xcopy /?
|will list all the available switches
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top