| Main > Main Forum |
| batchfile for mame from command prompt? |
| (1/1) |
| 1500points:
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:
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 |
| 1500points:
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:
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 |
| 1500points:
Excellent! Thank you again. |
| Navigation |
| Message Index |