[<<]Message[>>]        Author[>>]        Subject[>>]        Thread[>>]

Number : 4404 Date : 2003-04-21 Author : jtv1966 Subject : errorlevel Size(KB) : 0
I am having problem getting xxcopy, xcopy or robocopy to return correct errorlevel so my scripts can determine if the copy operation was successful. The errorlevel return 0 even when the file was not found to copy. Please advice & thanks in advance for your assistance. cls echo off if exist c:\scripts\archiveerr.log del archiveerr.log if exist c:\scripts\archivesuccess.log del archivesuccess.log for /f %%i in (%1) do ( xxcopy %%i c:\arcto%%i /E /V /H /I /Y /R if errorlevel 0 ( Echo Copied successfully %%i >>archivesuccess.log rd %%i /s /q if not exist %%i Echo removed directory %%i >>archivesuccess.log ) else ( Echo Error occured for %%i >>archiveerr.log ) )
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.