Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Robocopy major issue

Reply
Thread Tools Display Modes

Robocopy major issue

 
 
Alain
Guest
Posts: n/a

 
      10-23-2008
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!

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      10-23-2008

"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.


 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-24-2008

"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.


Simply knowing that this may happen should suggest a few ideas.

First, how do you know a fatal error has occurred? If you can figure it out
from, for example, the log file, then it might be possible for your script
to find out the same way.

Second, what kinds of fatal errors are you experiencing? There might be ways
of pre-determining the circumstances that tend to cause them.

/Al


 
Reply With Quote
 
Alain
Guest
Posts: n/a

 
      10-24-2008
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.
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      10-24-2008
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.
>>



 
Reply With Quote
 
Alain
Guest
Posts: n/a

 
      10-24-2008
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 : *.* /COPYAT /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.
>>>

>
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      10-24-2008
I don't have a copy of Robocopy XP26 and I was unable to find a download
location, hence I'm unable to duplicate your test. As I said before, you
could walk around the problem by detecting error conditions from the log
file like so:
@Echo off
RoboCopy C:\ Z:\ 1>c:\robocopy.log 2>&1
type c:\robocopy.log | find /i "Error" | find /i "0x" && echo Robocopy
reported an error.


"Alain" <> wrote in message
news:092EF34E-916A-411E-A613-...
> 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 : *.* /COPYAT /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.
>>>>

>>
>>



 
Reply With Quote
 
Alain
Guest
Posts: n/a

 
      10-24-2008
It come with Robocopy GUI that can be downloaded from Microsoft at this
address:
http://download.microsoft.com/downlo...ght2006_11.exe

I need to run Robocopy in batch so it would add a bit too much overhead to
the process to redirect the output to a file for analysis...


"Pegasus (MVP)" <> wrote in message
news:#...
> I don't have a copy of Robocopy XP26 and I was unable to find a download
> location, hence I'm unable to duplicate your test. As I said before, you
> could walk around the problem by detecting error conditions from the log
> file like so:
> @Echo off
> RoboCopy C:\ Z:\ 1>c:\robocopy.log 2>&1
> type c:\robocopy.log | find /i "Error" | find /i "0x" && echo Robocopy
> reported an error.
>
>
> "Alain" <> wrote in message
> news:092EF34E-916A-411E-A613-...
>> 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 : *.* /COPYAT /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.
>>>>>
>>>
>>>

>
>

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      10-24-2008
Thanks for the link.

I was able to duplicate the problem you report: Robocopy XP26 does not
appear to set the correct ErrorLevel. You therefore have to chose one of the
options I suggested before. By the way, I do not agree with your remark
about "too much overhead". I suggest you time the process, both with and
without redirection and error sensing. I'm sure you'll find that the
difference is negligible. Most of the elapsed time will be consumed by the
copy process itself.


"Alain" <> wrote in message
news:16133105-8463-499A-A98B-...
> It come with Robocopy GUI that can be downloaded from Microsoft at this
> address:
> http://download.microsoft.com/downlo...ght2006_11.exe
>
> I need to run Robocopy in batch so it would add a bit too much overhead to
> the process to redirect the output to a file for analysis...
>
>
> "Pegasus (MVP)" <> wrote in message
> news:#...
>> I don't have a copy of Robocopy XP26 and I was unable to find a download
>> location, hence I'm unable to duplicate your test. As I said before, you
>> could walk around the problem by detecting error conditions from the log
>> file like so:
>> @Echo off
>> RoboCopy C:\ Z:\ 1>c:\robocopy.log 2>&1
>> type c:\robocopy.log | find /i "Error" | find /i "0x" && echo Robocopy
>> reported an error.
>>
>>
>> "Alain" <> wrote in message
>> news:092EF34E-916A-411E-A613-...
>>> 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 : *.* /COPYAT /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.
>>>>>>
>>>>
>>>>

>>
>>



 
Reply With Quote
 
Al Dunbar
Guest
Posts: n/a

 
      10-25-2008

"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...



No problem, I do this kind of thing all the time. Install the robocopy you
need unconditionally with the script. Then make sure the script only runs
the robocopy sitting in the same folder by referencing it this way:
"%~dp0robocopy.exe".

/Al

>
>
> "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.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Major Issue? Printers and Vista Windows Vista General Discussion 1 01-07-2008 12:35 AM
robocopy /mir - major flaw?? *Darren* Windows Small Business Server 2 02-05-2007 04:20 PM
Robocopy Issue Triage Windows Server 0 05-25-2005 01:06 PM
MAJOR ISSUE josh Active Directory 9 03-04-2004 01:06 PM
Robocopy across a VPN - Authentication issue Tony Su Scripting 0 11-10-2003 05:02 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59