@ECHO off :: Set those lines to fit your setup. :: This is where isample.qsp will be copied. If you don't want to move it just comment (::) the line below. :: set CP_TO=..\GL_ECV :: This is the program used to open the QSPFILE. If you comment this line windows will launch the default app for the ".qsp" extension. :: The file that will be generated or open set QSPFILE=isample.qsp :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :menu cls echo. echo :: QSP Compiler and Launcher echo. if defined QSPFILE ( if not exist "%QSPFILE%" ( echo QSP FILE : [WARNING] - %QSPFILE% not found. ) else ( echo QSP FILE : [OK] - "%QSPFILE%") ) else ( echo QSP FILE : [NOT DEFINED] - ERROR: CAN'T CONTINUE.) if defined CP_TO ( if not exist "%CP_TO%" ( echo COPY : [ERROR] - Destination "%CP_TO%" not found. Copy DISABLED. set CP_TO= ) else ( echo COPY : [OK] - "%CP_TO%") ) else ( echo COPY : [DISABLED] ) echo. if defined NOT_FOUND ( echo ERROR: Option '%action%' wasn't recognized. Is it lowercase? set NOT_FOUND= ) echo. echo ACTIONS: (B)uild (E)xit echo. set /p action=Choose an action: if defined QSPFILE ( if %action% == b goto build ) if %action% == e goto exit set NOT_FOUND=1 goto menu :build echo. echo Building ... @ECHO ON python tools\txtmerge.py isample.qproj locations isample.txt tools\txt2gam.exe isample.txt %QSPFILE% > nul @ECHO OFF echo. if defined CP_TO ( echo Copying %QSPFILE% to "%CP_TO%" ... & copy %QSPFILE% %CP_TO% > nul ) echo. echo Done. pause if %action% == f ( goto run ) else ( goto menu ) :exit