echo Make dirs, copy init dlls REM Save the current directory set CURRENT_DIR=%cd% REM Change to the parent directory of the current location cd /d %~dp0.. REM Remove and recreate the dist-dlls and dist-azaion directories if exist dist-dlls rmdir dist-dlls /s /q mkdir dist-dlls if exist dist-azaion rmdir dist-azaion /s /q mkdir dist-azaion if exist dist rmdir dist /s /q mkdir dist echo Copying shared libs REM Copy the shared libs from the source location to dist-dlls robocopy "C:\\share" "dist-dlls" "*" REM Return to the original directory cd /d %CURRENT_DIR% echo Init script completed.