changed robocopy return code

This commit is contained in:
dzaitsev
2025-05-07 16:15:02 +03:00
parent 8d9fe62c53
commit 52c724eac6
+6 -10
View File
@@ -10,16 +10,12 @@ echo Copying shared libs
robocopy "C:\\share" "dist-dlls" "*" robocopy "C:\\share" "dist-dlls" "*"
set RC=%ERRORLEVEL% set RC=%ERRORLEVEL%
if %RC% EQU 1 ( if %RC% GEQ 8 (
echo All files copied successfully.
popd
exit /b 1
) else if %RC% LSS 8 (
echo Robocopy returned %RC% (acceptable non-error code), but not perfect copy.
popd
exit /b 0
) else (
echo Robocopy failed with code %RC%. echo Robocopy failed with code %RC%.
popd popd
exit /b %RC% exit /b %RC%
) )
echo Robocopy succeeded with code %RC%.
popd
exit /b 0