echo Make dirs, copy init dlls pushd %~dp0.. if exist dist-dlls rmdir dist-dlls /s /q mkdir dist-dlls if exist dist-azaion rmdir dist-azaion /s /q mkdir dist-azaion echo Copying shared libs robocopy "C:\\share" "dist-dlls" "*" set RC=%ERRORLEVEL% if %RC% GEQ 8 ( echo Robocopy failed with code %RC%. popd exit /b %RC% ) echo Robocopy succeeded with code %RC%. popd exit /b 0