T
Tom Meier
Guest
Hello,
i have a problem with robocopy.
There are 3 different versions of robocopy:
Version XP010:
- included in Windows Server 2003 Resource Kit Tools
- has complete documentation included
- URL:
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
Version XP026:
- included in Microsoft Robocopy GUI
- only the documentation of version XP010 included - new parameters of
version XP026 are not described
- URL:
http://download.microsoft.com/downl...8546-25c359cc0842/UtilitySpotlight2006_11.exe
Version XP027:
- included in Windows Vista
- no documentation included
- runs only under Vista, not supported under Windows XP/2003
The following problem exists:
Normaly you get the result of a robocopy-execution as exit code and you
can fetch it for example by using the ERRORLEVEL in your batchfiles.
The versions XP010 and XP027 are working correct like it is discribed
in the robocopy documenation for version XP010:
==============================================================
robocopy.exe [SRC] [DEST] /S /E
if errorlevel 16 echo ***FATAL ERROR*** & goto end
if errorlevel 15 echo FAIL MISM XTRA COPY & goto end
if errorlevel 14 echo FAIL MISM XTRA & goto end
if errorlevel 13 echo FAIL MISM COPY & goto end
if errorlevel 12 echo FAIL MISM & goto end
if errorlevel 11 echo FAIL XTRA COPY & goto end
if errorlevel 10 echo FAIL XTRA & goto end
if errorlevel 9 echo FAIL COPY & goto end
if errorlevel 8 echo FAIL & goto end
if errorlevel 7 echo MISM XTRA COPY & goto end
if errorlevel 6 echo MISM XTRA & goto end
if errorlevel 5 echo MISM COPY & goto end
if errorlevel 4 echo MISM & goto end
if errorlevel 3 echo XTRA COPY & goto end
if errorlevel 2 echo XTRA & goto end
if errorlevel 1 echo COPY & goto end
if errorlevel 0 echo --no change-- & goto end
:end
==============================================================
For example, if you call robocopy with wrong parameters, it gives the
exitcode
ERRORLEVEL=16 - FATAL ERROR
Or if robocopy has successfully copied some files it gives the result
ERRORLEVEL=1
Now the problem: Version XP026 gives always the result ERRORLEVEL=0, no
matter
if there where some files copied or if you give incorrect parameters.
So it not possible to react on the exit code of robocopy XP026 in your batch
file.
Could someone confirm this false behaviour of robocopy XP026?
Has anyone a bugfix or workaround for this problem?
I am also interested, if there is an actual, official documentation for
robocopy XP026 or XP027.
Has anyone a trick, how it is possible to run the Vista version XP027 under
Windows XP/2003?
Thanks for any sugestion, hint or reply.
Tom
i have a problem with robocopy.
There are 3 different versions of robocopy:
Version XP010:
- included in Windows Server 2003 Resource Kit Tools
- has complete documentation included
- URL:
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
Version XP026:
- included in Microsoft Robocopy GUI
- only the documentation of version XP010 included - new parameters of
version XP026 are not described
- URL:
http://download.microsoft.com/downl...8546-25c359cc0842/UtilitySpotlight2006_11.exe
Version XP027:
- included in Windows Vista
- no documentation included
- runs only under Vista, not supported under Windows XP/2003
The following problem exists:
Normaly you get the result of a robocopy-execution as exit code and you
can fetch it for example by using the ERRORLEVEL in your batchfiles.
The versions XP010 and XP027 are working correct like it is discribed
in the robocopy documenation for version XP010:
==============================================================
robocopy.exe [SRC] [DEST] /S /E
if errorlevel 16 echo ***FATAL ERROR*** & goto end
if errorlevel 15 echo FAIL MISM XTRA COPY & goto end
if errorlevel 14 echo FAIL MISM XTRA & goto end
if errorlevel 13 echo FAIL MISM COPY & goto end
if errorlevel 12 echo FAIL MISM & goto end
if errorlevel 11 echo FAIL XTRA COPY & goto end
if errorlevel 10 echo FAIL XTRA & goto end
if errorlevel 9 echo FAIL COPY & goto end
if errorlevel 8 echo FAIL & goto end
if errorlevel 7 echo MISM XTRA COPY & goto end
if errorlevel 6 echo MISM XTRA & goto end
if errorlevel 5 echo MISM COPY & goto end
if errorlevel 4 echo MISM & goto end
if errorlevel 3 echo XTRA COPY & goto end
if errorlevel 2 echo XTRA & goto end
if errorlevel 1 echo COPY & goto end
if errorlevel 0 echo --no change-- & goto end
:end
==============================================================
For example, if you call robocopy with wrong parameters, it gives the
exitcode
ERRORLEVEL=16 - FATAL ERROR
Or if robocopy has successfully copied some files it gives the result
ERRORLEVEL=1
Now the problem: Version XP026 gives always the result ERRORLEVEL=0, no
matter
if there where some files copied or if you give incorrect parameters.
So it not possible to react on the exit code of robocopy XP026 in your batch
file.
Could someone confirm this false behaviour of robocopy XP026?
Has anyone a bugfix or workaround for this problem?
I am also interested, if there is an actual, official documentation for
robocopy XP026 or XP027.
Has anyone a trick, how it is possible to run the Vista version XP027 under
Windows XP/2003?
Thanks for any sugestion, hint or reply.
Tom