Jump to content
LaunchBox Community Forums

MAME ROM Runner / Troubleshooter .bat file


xswaggerjagerx

Recommended Posts

Hi All!

Relatively new to the mame/rom scene and have been working out issues that a first time user may run into, missing files, .chds etc. Typical "mame opens then closes" issues I saw after getting my launchbox up and running. Realized that if I run mame from its directory in command prompt and then the rom that was having issues, it would show me I was missing files. I have been using that heavily and decided to make a .bat to make my life easier! It's probably not the right fix for my troubleshooting but just wanted to pass the .bat along to maybe help someone in the future :) Running this will open a command prompt, ask for the rom name, example "dkong", then if it runs successfully mame will open and run the game. once you press esc the command prompt window will still be open and ask if you would like to restart. If the rom fails to run, mame should close and you will see why it failed in the command prompt window. Then you can add your files you may be missing and try to run it again all within this .bat file. Any questions or suggestions of a better way to troubleshoot please let me know.

You will have to change your mame directory of course, but it should work. Just copy this into a notepad document then change the file extension to .bat instead of .txt or download the attached file.

@echo off
:start
cls
cd C:\Users\Me\LaunchBox\MAME
set /P "rom=Which ROM Would You Like To Run?: "
mame64.exe %rom%
set choice=
set /p choice="Run Again? Press 'y' and enter for Yes: "
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='y' goto start

 

MAME ROM Runner.bat

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...