2
I have a batch that copies some files on the network, this copy updates the previous files by the newer ones if they already exist in the destination folder, but if any file is in use the system does not display the error message at the end just at the time it is trying to update the file.
At the moment I don’t want to solve this file problem being in use, I just wish the command would inform only at the end of the copy if there was error in updating some file.
I put in the end the condition if "%errorlevel%"=="0"
but this condition does not work if errors have occurred in the middle of the copy.
Follow my lead:
xcopy "C:\Origem\." "C:\Destino\" /c /d /e /h /i /k /r /y
thanks for the answer, I voted as useful but I need to resolve this question, still need the command to continue the copy if errors occur, with this command it does not continue copying, only need to inform at the end if there was any file not copied.
– Laércio Lopes