1
General / Re: Starting a batch file.
« on: April 02, 2015, 10:14:11 PM »
WOW, got it to run. I added /k "[ROMFILENAME]" to my cmd arg in AM, but when I exit the game AM it still hangs?. Grrrrrrr.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
@echo off
set game=2400ad
G:
cd \
cd "G:\Games\Hyperspin\HyperLaunch\Romfiles\Microsoft MS-DOS\ExoDos\"
:Install
IF EXIST ".\games\%game%\" goto run
cd ".\games\games\%game%\"
call install.bat wn
cd ..
:Run
IF NOT EXIST ".\games\%game%\" goto none
start .\dosbox\dosbox.exe -conf .\games\games\%game%\dosbox.conf -noconsole -exit
del stdout.txt
del stderr.txt
if exist .\games\CWSDPMI.swp del .\games\CWSDPMI.swp
:unInstall
cd ".\games\games\%game%\"
call install.bat
cd ..
goto end
:none
::::cls
echo.
echo Game has not been installed
echo.
pause
:end