Jump to content

Problem with ROBOCOPY version XP026 an ERRORLEVEL


Recommended Posts

Guest Tom Meier
Posted

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/details.aspx?familyid=9d467a69-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/download/f/d/0/fd05def7-68a1-4f71-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

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Problem with ROBOCOPY version XP026 an ERRORLEVEL

 

 

"Tom Meier" <meiertom@gmx.de> wrote in message

news:fbuokc$1sh$1@online.de...

> 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/details.aspx?familyid=9d467a69-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/download/f/d/0/fd05def7-68a1-4f71-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

>

>

 

Strange. Two days ago you asked much the same question in a

WinXP newsgroup under the name of Alex Taylor. Was this

your twin brother?

 

You report that Version 10 works correctly in a WinXP/2003

environment. Why then would you want to use Version 27, which

is meant for Vista?

Guest Tom Meier
Posted

Re: Problem with ROBOCOPY version XP026 an ERRORLEVEL

 

> Strange. Two days ago you asked much the same question in a

> WinXP newsgroup under the name of Alex Taylor. Was this

> your twin brother?

 

No, that's not my twin brother (and not me myself).

it seems to be someone who has the same problem and is searching for an

answer too.

>

> You report that Version 10 works correctly in a WinXP/2003

> environment. Why then would you want to use Version 27, which

> is meant for Vista?

 

The reason is, that i want to use the new features of XP026 (like /DCOPY:T

, /SECFIX, /XJD, /XJF,..) but without a correct ERRORLEVEL i can not use

robocopy as i like.


×
×
  • Create New...