Tech Support > Microsoft Windows > Rename destination file with Robocopy
Rename destination file with Robocopy
Posted by WB on March 27th, 2008


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,
--
Bill Baker

Posted by Pegasus \(MVP\) on March 27th, 2008



"WB" <WB@discussions.microsoft.com> wrote in message
news:25FFA511-E759-40EC-B03E-2B532CAC9E64@microsoft.com...
No, you cannot do this with robocopy.exe. Use copy or xcopy
instead.



Posted by WB on March 27th, 2008


Sheesh. Not your fault, but Sheesh.
--
Bill Baker


"Pegasus (MVP)" wrote:

Posted by Pegasus \(MVP\) on March 27th, 2008


"WB" <WB@discussions.microsoft.com> wrote in message
news:CF87AA78-F00F-4350-8943-5365B23C931F@microsoft.com...
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.