Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: paigeoliver on February 19, 2004, 07:41:50 am

Title: Batch file for game switch button
Post by: paigeoliver on February 19, 2004, 07:41:50 am
Ok, here is what I want to do, and I KNOW it can be done with batch files, I am just not sure how.

When I finish my Defender/Stargate Mame cabinet I want it to have a single button to switch between games.

I know it can be done this way.

autoexec.bat calls

Defender.bat which launches defender, waits, and upon termination calls

Stargate.bat which launches Stargate, waits, and upon termination calls Defender.bat

Can any of you dos wizards write those two bat files for me, heck, just write ONE of them, I can handle it from there.
Title: Re:Batch file for game switch button
Post by: Brad Lee on February 19, 2004, 09:05:14 am
autoexec.bat
Code: [Select]
.
.(normal stuff)
.
@cd\mame
@defender.bat

defender.bat in c:\mame
Code: [Select]
@mame defender (options)
@stargate.bat

stargate.bat also in c:\mame
Code: [Select]
@mame stargate (options)
@defender.bat

that SHOULD do it.. im gonna go test it but Im pretty sure thatll work, that each batch wont progress to the second line until after mame exits

edit- YES that does work, and heres the super improved version

SDswitch.bat in c:\mame, call this from autoexec
Code: [Select]
:DoItAgain
mame defender options
mame stargate options
goto DoItAgain
This'll just stay loaded instead of switching back and forth between files