I typed the following into google.com to get that link. There are lots of other that look like they would be helpful:
robocopy return code ERRORLEVEL
http://www.google.com/sear
Main Topics
Browse All TopicsI am automating the use of robocopy from the WIndows Server 2003 Resource Kit.
I have been unable to find any information on the exit codes. From what I can tell, anything less than 8 is a success anything above is a failure. Does anyone have any more detailed information?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I typed the following into google.com to get that link. There are lots of other that look like they would be helpful:
robocopy return code ERRORLEVEL
http://www.google.com/sear
If it helps, here is the error checking part of one of my standard robocopy scripts which has been running for a few years at one site:
echo Copying Opera backup files from %source% to %dest%
echo %DATE% %TIME% - Started copy of backup files from %SERVER% >> %LOGFILE%
ROBOCOPY "%source%" "%dest%" %filespec% %options%
REM Errorlevel 1 = Sucessful copy, 2 is extra filed needed deleting, 3 = both
REM so Errorlevel 4 is another error
if errorlevel 4 goto error
if errorlevel 3 goto OKCopyAndDel
if errorlevel 2 goto OKDelete
if errorlevel 1 goto OKCopy
if errorlevel 0 goto OKNothing
:OKCopyAndDel
net send %ErrorPC% "%DATE% %TIME% Backup copy to DC02 OK - Copied & Deleted"
echo %DATE% %TIME% - Backup Operation Successful from %SERVER% >> %LOGFILE%
goto end
:OKDelete
net send %ErrorPC% "%DATE% %TIME% Backup copy to DC02 OK - Deleted Only"
echo %DATE% %TIME% - Backup Operation Successful from %SERVER% >> %LOGFILE%
goto end
:OKCopy
net send %ErrorPC% "%DATE% %TIME% Backup copy to DC02 OK - Copied only"
echo %DATE% %TIME% - Backup Operation Successful from %SERVER% >> %LOGFILE%
goto end
:OKNothing
net send %ErrorPC% "%DATE% %TIME% Backup copy to DC02 OK - Nothing to do"
echo %DATE% %TIME% - Backup Operation Successful from %SERVER% >> %LOGFILE%
goto end
:error
echo %DATE% %TIME% - Backup Operation Failed with copy of backup files from %SERVER% >> %LOGFILE%
net send %ErrorPC% "%DATE% %TIME% Backup database copy to DC02 has reported an error"
net send %Erroruser% "%DATE% %TIME% Backup database copy to DC02 has reported an error"
goto end
:end
echo. >> %LOGFILE%
echo --------------------------
robocopy's return codes are a bitmap.
They are described in detail in the file "robocopy.doc" in the installation folder, Page 33:
Hex Bit Value Decimal Value Meaning If Set
0x10 16 Serious error. Robocopy did not copy any files. This is either a usage error or an error due to insufficient access privileges on the source or destination directories.
0x08 8 Some files or directories could not be copied (copy errors occurred and the retry limit was exceeded). Check these errors further.
0x04 4 Some Mismatched files or directories were detected. Examine the output log. Housekeeping is probably necessary.
0x02 2 Some Extra files or directories were detected. Examine the output log. Some housekeeping may be needed.
0x01 1 One or more files were copied successfully (that is, new files have arrived).
0x00 0 No errors occurred, and no copying was done. The source and destination directory trees are completely synchronized.
Business Accounts
Answer for Membership
by: SteveGTRPosted on 2007-02-18 at 17:43:33ID: 18560573
Check out this forum thread. They have lots of information regarding ERRORLEVEL codes returned from Robocopy:
orkspaces/ messageboa rd/thread. aspx? id=10 8f89b9-be0 b-4ec4-973 6-3a43d39f 0146&threa did=ed7b1b a5- 60a0-49 40-8dec-14 87410ac0af
http://www.gotdotnet.com/w
Good Luck,
Steve