Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Batch file for game switch button  (Read 761 times)

0 Members and 1 Guest are viewing this topic.

paigeoliver

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10994
  • Last login:July 06, 2024, 08:43:49 pm
  • Awesome face!
Batch file for game switch button
« 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.
Acceptance of Zen philosophy is marred slightly by the nagging thought that if all things are interconnected, then all things must be in some way involved with Pauly Shore.

Brad Lee

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 619
  • Last login:May 26, 2005, 11:39:04 am
    • 666
Re:Batch file for game switch button
« Reply #1 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
« Last Edit: February 19, 2004, 09:11:59 am by Brad Lee »