Rename destination file with Robocopy

W

WB

Is there any way to have robocopy name a destination file different from the
source? For example, if I want to copy c:\Temp\temp.log to c:\Temp\temp.bak.

So far I can't see any way of performing this simple operation. Does
robocopy actually not allow this?

Thanks,
 
P

Pegasus \(MVP\)

WB said:
Is there any way to have robocopy name a destination file different from
the
source? For example, if I want to copy c:\Temp\temp.log to
c:\Temp\temp.bak.

So far I can't see any way of performing this simple operation. Does
robocopy actually not allow this?

Thanks,

No, you cannot do this with robocopy.exe. Use copy or xcopy
instead.
 
P

Pegasus \(MVP\)

WB said:
Sheesh. Not your fault, but Sheesh.

Have a look at the command syntax for robocopy. With
this syntax it is simply not possible to accommodate your
wish. However, since there are several alternatives, this
is not really a problem.
 

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