On 10/14/2015 5:35 PM,
daniel...@gmail.com wrote:
> ROBOCOPY \\mchdis\dis\Cerner\prod \\mchdis\dis\Cerner\mytest /COPY:DAT /XF \\mchdis\dis\prod\*.PDF \\mchdis\dis\prod\*.TIF /S /E /R:0 /W:0 /ZB /MT:8
Looking again at your original command I think you left off \Cerner and
the following would be correct:
/XF \\mchdis\dis\Cerner\prod\*.PDF
\\mchdis\dis\Cerner\prod\*.TIF
/S and /E should NOT both be used in the same command:
/S Copies subdirectories (excluding empty ones).
/E Copies all subdirectories (including empty ones).
I find the using set makes it easier to follow in a batch and less prone
to error::
SET SRC= \\mchdis\dis\Cerner\prod
SET DST=\\mchdis\dis\Cerner\mytest
START "" /WAIT RoboCopy %SRC% %DST% ..........
Also look at the header of the output report and you will see what
RoboCopy thinks you asked for. Add a /LOG even if only temporarily in an
easy place to find (desktop).
For clarity maybe place the /XF at the end or the command so all
following are excluded files.