ROBOCOPY -- force prompt before overwrite?

  • Thread starter Thread starter Rick
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top