If your .exe is larger than a few megabytes, consider using the compression flag:
:: Check if EXE exists if not exist "%TARGET_EXE%" ( echo ERROR: app.exe not found in %SCRIPT_DIR% echo. echo Please place this BAT file in the same folder as app.exe pause exit /b 1 ) convert exe to bat fixed