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: batchfile for mame from command prompt?  (Read 1986 times)

0 Members and 1 Guest are viewing this topic.

1500points

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 550
  • Last login:November 20, 2018, 01:44:12 pm
    • How to succeed at Robotron
batchfile for mame from command prompt?
« on: December 08, 2013, 08:39:18 pm »
Hello,
ran out of ideas by internet search, so asking the experts.

Have XP laptop.
Want to run a specific program from command prompt
need it to start on a second monitor
using mamedev's v106 binary
loaded at c:\mame106

I can accomplish this manually with
Start>run>cmd>
type c:\mame106\mame gamenameHERE -screen \\.\display2

but I can't figure out how to automate this with a batch file.
I have created desktop batchfile (.bat) with notepad

batch file Contents say:
cmd /k ""c:\mame106\mame.exe""
--this triggers the mame executable to start

BUT I can't get it to fire up a specific game and have been trying variations of this line
cmd /k ""c:\mame106\mame.exe" "romnameHERE""
--this brings up a mame list and says the game approximately matches a list of games, one of them is an exact match for what I have entered.

Once the cmd prompt batch file starts the game, I will need to direct it to go to the second display.

Help, please!  :)

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: batchfile for mame from command prompt?
« Reply #1 on: December 08, 2013, 09:32:55 pm »
you need to cd to the mame directory first, before launching the executable. you also don't need to call cmd first.   doing it this way worked for me...


cd c:\mame
mame.exe "rom name"


i dont have a second monitor on my cabinets, but this should work:

cd c:\mame
mame.exe "rom name" -screen \\.\display2


Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

1500points

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 550
  • Last login:November 20, 2018, 01:44:12 pm
    • How to succeed at Robotron
Re: batchfile for mame from command prompt?
« Reply #2 on: December 08, 2013, 10:33:15 pm »
Thank you! That worked perfectly.

What's the trick to get rid of the initial screen where you have to click through the disclaimer before you see the game?
cheers.

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: batchfile for mame from command prompt?
« Reply #3 on: December 08, 2013, 10:45:32 pm »
no problem.  as for the nag screen, you have to compile your own mame executable with the no nag/hi score patch...

http://forum.arcadecontrols.com/?topic=64298.0
Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

1500points

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 550
  • Last login:November 20, 2018, 01:44:12 pm
    • How to succeed at Robotron
Re: batchfile for mame from command prompt?
« Reply #4 on: December 09, 2013, 08:41:27 am »
Excellent! Thank you again.