You are right about Robocopy not been subject to automatic updates but since
my script would update it, some other script could do the same and update it
to version XP026... I know that at least Robocopy GUI would do this, it
would install version XP026...
The problem is not specific to my computer, it do the same on any computer
and may be reproduced very easily with a small script like the following
one:
@Echo off
RoboCopy C:\ Z:\
Echo.
Echo ------------------------------------------------------------------------------
Echo.
Echo ErrorLevel = %ErrorLevel%
The output of this script with XP026 is:
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows :: Version XP026
-------------------------------------------------------------------------------
Started : Fri Oct 24 15:58:56 2008
2008/10/24 15:58:56 ERROR 3 (0x00000003) Getting File System Type of
Destination
Z:\
The system cannot find the path specified.
Source : C:\
Dest - Z:\
Files : *.*
Options : *.* /COPY

AT /R:1000000 /W:30
------------------------------------------------------------------------------
2008/10/24 15:58:56 ERROR 3 (0x00000003) Creating Destination Directory Z:\
The system cannot find the path specified.
------------------------------------------------------------------------------
ErrorLevel = 0
This is a fatal error so ErrorLevel should return a value of 16
"Pegasus (MVP)" <> wrote in message
news:...
> Robocopy is not subject to automatic updates.
>
> You did not say if the problem is specific to one PC or if it can be
> readily reproduced on any PC. If so, how?
>
>
> "Alain" <> wrote in message
> news:F58D35F1-B43D-499B-9E5E-...
>> Robocopy version XP010 doesn't have this issue on the same computer but
>> then I would need to check the version of Robocopy each time the script
>> is installed on an other computer, not even only at installation but each
>> time it run since it could be updated after installation...
>> Some people may also need the XP026 version for it's new features or
>> because of other issues in XP010 that were addressed in version XP026 so
>> I don't want to break other scripts for having mine to work...
>>
>>
>> "Pegasus (MVP)" <> wrote in message
>> news:...
>>>
>>> "Alain" <> wrote in message
>>> news:673C5A1D-A778-4637-AF9A-...
>>>>I am working on a script with Robocopy XP026 and have a major issue with
>>>>the Return Code since it always return 0 even when there is a fatal
>>>>error...
>>>> Does someone know a workaround for this major problem on Windows XP?
>>>>
>>>> Thanks!
>>>
>>> I have read similar reports in other posts (including your first post on
>>> the same subject). While I haven't been able to confirm (or otherwise)
>>> your observation, I would do this:
>>> - Check if the problem occurs on several machines.
>>> - If it does, monitor the log generated by robocopy, or
>>> - Use the previous version of robocopy.
>>>
>
>