@echo off set ARG1=%~1 set ARG2=%~2 pushd "%~dp0%" call mingw64 -no-start ./cleanup.sh "%ARG1%" "x86_64" "%ARG2%" 1 0 popd