IIRC the syntax is source;  destination;  switches.  Put all the
switches at the end of the command line.  

-----Original Message-----
From: Ben Scott [mailto:mailvor...@gmail.com] 
Sent: Tuesday, December 16, 2008 6:30 PM
To: NT System Admin Issues
Subject: Re: ROBOCOPY /XD (exclude directory) wildcards

On Tue, Dec 16, 2008 at 5:42 PM, lists <li...@bdtechnology.org> wrote:
> Is "D" shared?  Robocopy has issues with non shared folders.
Otherwise
> name it explicitly; "d:\d"

  The source "D:\" is just a partition on the local hard disk drive.
The target "D" is a folder in a network share on another computer.

  But really,  it doesn't appear to be command line dependent.  For
example, set up a directory tree like this:

CD /D C:\
MKDIR BenTest\src BenTest\dst
CD BenTest\src
MKDIR foo\i386 foo\other bar\i386 bar\other baz\i386 baz\other

  Now this will copy everything:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E

  The below will copy everything, except for the "i386" directories
under "foo" and "bar".  "baz" will still be copied, as will the
"other" directories.

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\foo\i386
C:\BenTest\src\bar\i386

  But this does not work:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*\i386

  Neither does this:

ROBOCOPY C:\BenTest\src C:\BenTest\dst /E /XD C:\BenTest\src\*.*\i386

  Both yield "Invalid Parameter #5".

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to