Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista File Management > First Time User of RoboCopy-Syntax Question

Reply
Thread Tools Display Modes

First Time User of RoboCopy-Syntax Question

 
 
SeaRay33
Guest
Posts: n/a

 
      05-11-2009

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
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a

 
      05-12-2009
If you are trying to copy from the CMD prompt, no spaces are allowed,
you may have to enclose the full statement in double quotes, since Vista is
not in control.
I ran into this a while back and got very frustrated until I tried this.
You may also have to Run as Administrator by right clicking CMD.


 
Reply With Quote
 
GTS
Guest
Posts: n/a

 
      05-12-2009
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" <> wrote in message
news:...
>
> 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


 
Reply With Quote
 
GTS
Guest
Posts: n/a

 
      05-12-2009
FYI - Double quotes are needed around path names which contain spaces
(optional otherwise). Command line options should never be enclosed within
quotes.
--

<> wrote in message
news:%...
> If you are trying to copy from the CMD prompt, no spaces are allowed,
> you may have to enclose the full statement in double quotes, since Vista
> is not in control.
> I ran into this a while back and got very frustrated until I tried this.
> You may also have to Run as Administrator by right clicking CMD.
>
>


 
Reply With Quote
 
SeaRay33
Guest
Posts: n/a

 
      05-12-2009

Just in case someone else looks at this I have an answer. I was trying
to use ver. 1.71 of Robocopy, an old version that does not recognize
some parameter like the /MIR parameter.
Use Version XP010 that downloads with the Server 2003 Resource Tookit.
I believe RoboCopy comes as a part of Server 2008 so if you have that OS
you don't need to download.

Hope that helps someone. I was beating my head against a brick wall
over this one. :huh:


--
SeaRay33
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Robocopy question using Vista Dick Windows Vista General Discussion 19 10-23-2008 07:04 PM
robocopy syntax littleriver Windows Vista General Discussion 3 02-01-2008 03:37 PM
"invalid STORE command syntax invalid message set syntax" Catullus Nacakus Windows Vista Mail 6 01-26-2008 10:46 PM
One question about Windows Time Synchronize with Internet Time Ser Xiyangfangzi Windows Vista General Discussion 0 05-22-2007 01:32 AM
Never robocopy vista user accounts without /xj mister.jones Windows Vista General Discussion 1 02-26-2007 02:55 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59