I don't see any obvious problem with your command line. I believe /COPYALL
is redundant when using /MIR and should be dropped. I suggest if what you
want is to mirror the directories, start by testing /MIR as your key command
in conjunction with the "/Z, /NP, /R:4, or W:5" in combinations to see what
may conflict. I would consider dropping the /Z however.
(Per MS DOC Note If you use /Z, /B, or /ZB, this can decrease Robocopy
performance and throughput significantly, as these options involve extra
overhead. These options are therefore only recommended when experience
indicates you really need them.)
Robocopy can be difficult to troubleshoot. I've seen subtle errors relating
to conflicting commands or the sequence of parameters on the command line.
I take it no errors are logged or displayed? How does the command fail?
Completely?
A manual of sorts for robocopy (robocopy.doc) is bundled with the Windows
Server 2003 Resource Kit Tools. (I don't think the current version is
downloadable separately.)
It has some info on exit codes that might be of some help.
http://www.microsoft.com/downloads/d...displaylang=en
--
"SeaRay33" <guest@unknown-email.com> wrote in message
news:f6338dfb47090f27d5b78d3c47977511@nntp-gateway.com...
>
> This is my first post here and I have just discovered RoboCopy. I am
> trying to get the following command to work in a script:
>
> c:\Robocopy "D:\shares\TV Collections-Permanent" "E:\Shares\TV
> Collections-Permanent" /MIR /Z /COPYALL /NP /R:4 /W:5
> /LOG+:"C:\External-Shares.log" /TEE
>
> The command works as expected if I use only the /Z, /NP, /R:4, or W:5
> parameters. If I include the parameters /MIR, /COPYALL, /LOG+ or /TEE
> either one at a time or all together the RoboCopy command fails. I have
> looked at the parameters that don't work and can see nothing wrong with
> the way I have used them. Obviously, there is something wrong. 
>
> The D: folder has File1 and File2
> The E: folder has File1 only
>
> Does anyone have and idea what I am doing wrong?
>
> As I said earlier this is my first attempted use of RoboCopy so if I
> have left some details out, please forgive me. I will supply any info I
> inadvertently left out.
>
> Best regards,
> George
>
>
> --
> SeaRay33