diff --git a/build/init.cmd b/build/init.cmd index fafef12..9e6c981 100644 --- a/build/init.cmd +++ b/build/init.cmd @@ -1,12 +1,18 @@ echo Make dirs, copy init dlls -pushd %~dp0.. +:: Change to the directory where init.cmd is located +cd /d %~dp0.. + +:: Create directories if they do not exist 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 + +:: Use robocopy to copy files robocopy "C:\\share" "dist-dlls" "*" -popd \ No newline at end of file +:: Return to the previous directory +cd /d %OLDPWD%