1
General / Starting a batch file.
« on: April 02, 2015, 09:18:18 PM »
How do I start a batch file in AM?. I have this bat file
And when I run it it locks up AM.
My setting:
Exe=cmd.exe
cmd arg="[filename]"
rom path=path to my bat files
Ext=.bat
What I Need is a way to start a new cmd.exe from AM, not in the same cmd.exe window and no start /wait won't work from AM or from a separate batch file. Been on this all day and gettin pissed, pls help. Bat file works great outside AM BTW.
Code: [Select]
@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
And when I run it it locks up AM.
My setting:
Exe=cmd.exe
cmd arg="[filename]"
rom path=path to my bat files
Ext=.bat
What I Need is a way to start a new cmd.exe from AM, not in the same cmd.exe window and no start /wait won't work from AM or from a separate batch file. Been on this all day and gettin pissed, pls help. Bat file works great outside AM BTW.