ROBOCOPY -- force prompt before overwrite?

R

Rick

I'm still using good ol' ROBOCOPY v1.95 from years ago. How can I get
it to prompt me about overwriting if the source files are in the
destination? I know it automatically skips if the files are the same
date, and that there are all sorts of switches to not copy if newer,
don't copy if older, but I'd like an old-fashioned switch just to say:
prompt me no matter what (like the /-Y in XCOPY). Thanks much for any
help.
 
P

Pegasus \(MVP\)

Rick said:
I'm still using good ol' ROBOCOPY v1.95 from years ago. How can I get
it to prompt me about overwriting if the source files are in the
destination? I know it automatically skips if the files are the same
date, and that there are all sorts of switches to not copy if newer,
don't copy if older, but I'd like an old-fashioned switch just to say:
prompt me no matter what (like the /-Y in XCOPY). Thanks much for any
help.

I don't think robocopy lets you do this. Use xcopy instead -
it has much the same functionality.
 
R

Rick

Right -- I currently use XCOPY but want to use ROBOCOPY because of its
advanced functionality such as the ability to specify multiple files on
the command line, the /XF exclude list, etc. Guess I can't have
everything.

Maybe I'll just throw in an IF EXIST beforehand...

Thanks.
 

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