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

Re: Rename destination file with Robocopy by Pegasus

Pegasus
Thu Mar 27 15:55:16 PDT 2008


"WB" <WB@discussions.microsoft.com> wrote in message
news:25FFA511-E759-40EC-B03E-2B532CAC9E64@microsoft.com...
> 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

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



Re: Rename destination file with Robocopy by WB

WB
Thu Mar 27 16:41:00 PDT 2008

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


"Pegasus (MVP)" wrote:

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

Re: Rename destination file with Robocopy by Pegasus

Pegasus
Thu Mar 27 16:48:01 PDT 2008

"WB" <WB@discussions.microsoft.com> wrote in message
news:CF87AA78-F00F-4350-8943-5365B23C931F@microsoft.com...
> Sheesh. Not your fault, but Sheesh.
> --
> Bill Baker

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.