Jump to content

ROBOCOPY -- force prompt before overwrite?


Recommended Posts

Posted

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.

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: ROBOCOPY -- force prompt before overwrite?

 

 

"Rick" <news-user@invalid.com> wrote in message

news:MPG.2231f41ee3dc10c49899cb@msnews.microsoft.com...

> 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.

Posted

Re: ROBOCOPY -- force prompt before overwrite?

 

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.

 

In article <usgUU5ueIHA.6136@TK2MSFTNGP03.phx.gbl>, I.can@fly.com.oz

says...

>

> "Rick" <news-user@invalid.com> wrote in message

> news:MPG.2231f41ee3dc10c49899cb@msnews.microsoft.com...

> > 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.

>

>

>

Guest Pegasus \(MVP\)
Posted

Re: ROBOCOPY -- force prompt before overwrite?

 

xcopy.exe has an equally well developed "exclude" facility.

 

 

"Rick" <news-user@invalid.com> wrote in message

news:MPG.2231fb61a95edc999899cc@msnews.microsoft.com...

> 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.

>

> In article <usgUU5ueIHA.6136@TK2MSFTNGP03.phx.gbl>, I.can@fly.com.oz

> says...

>>

>> "Rick" <news-user@invalid.com> wrote in message

>> news:MPG.2231f41ee3dc10c49899cb@msnews.microsoft.com...

>> > 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.

>>

>>

>>


×
×
  • Create New...