The NEW Build Your Own Arcade Controls
Main => Main Forum => Topic started by: 1500points 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! :)
-
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
-
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.
-
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 (http://forum.arcadecontrols.com/?topic=64298.0)
-
Excellent! Thank you again.