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: How to create a batch file to boot from Rom after Windows startup??  (Read 4432 times)

0 Members and 1 Guest are viewing this topic.

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
How to create a batch file to boot from Rom after Windows startup??

cheers

jdbailey1206

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2656
  • Last login:March 11, 2023, 01:32:56 pm
  • No. It's your top score on Pole Position.
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #1 on: March 26, 2014, 09:18:34 am »
---steaming pile of meadow muffin---.  Wish I would have seen this last night.  I'll put a reminder in my phone to show you how I did it my SW Trilogy cab I'm working on.  Expect it later tonight. 

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #2 on: March 26, 2014, 09:59:26 am »
thank you...

my roms are in c:\mame\roms

as i would like to boot from 1 particular game street fighter 3, then press the exit button on the cab to see the game list menu

or

may want to somehow lock it to 1 game. ( just want the option)

cheers

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #3 on: March 26, 2014, 04:46:55 pm »
which front end are you using?  Creating a simple batch file to launch a specific game is quite easy, but if you want to go back to your game list on exit, then that complicates things slightly.  If you are using mala, it has the option to start a specific game when it first loads, which would be a good option. 

a simple batch file to launch that game only would contain the following lines:

cd c:\mame
mame.exe sfiii 



(adjust the rom name as necessary to load the specific version you wish to play)

but that will not take you to a game list on exit because you are not launching a front end.  you could add a line at the end to launch your front end, but like i said earler, it may be better to use the front end to launch a game intead.

this would launch mame and play SFIII then when closed, launch Mala (assuming mame is at c:\mame and mala is at c:\mala)


cd c:\mame
mame.exe sfiii

c:\mala\mala.exe 


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

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #4 on: March 26, 2014, 05:50:42 pm »
I'm using Mamewah sorry,

Please provide step by step..

Thank you

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #5 on: March 26, 2014, 06:48:20 pm »
What you seek is here:
http://forum.arcadecontrols.com/index.php?topic=13553.0

As quoted by forum user Rocky:
create a batch file to run on start up.

c:
cd\mame
start /wait c:\mame\mame.exe -pacman
cd\mamewah
mamewah.exe

Change any necessary drive / directory commands.

DeLuSioNaL29
Stop by my Youtube channel and leave a comment:

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #6 on: March 26, 2014, 06:53:36 pm »
Why did you ask the same question as in this topic http://forum.arcadecontrols.com/index.php/topic,138390.0.html

after getting exactly the same answer as over here?   :dunno  (at least is "proves" its the right answer  >:D )

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #7 on: March 26, 2014, 07:17:00 pm »
Got the answer, but confusing..

Batch files or start up, needed a how to guide..

Thanks Guys..

I'll try it .. Cheers

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #8 on: March 26, 2014, 10:29:39 pm »
Ok after some time got the batch file working, and pressing left or right on the joypad starts the game,
 
Rom:  sfiii3n

Now problem: another game for some reason starts, and slows down ???


I have changed the batch rom file to another sf3 and works fine, but sfiii3n some how starts another basketball game???

I did a search of roms, there's only 1 sfiii3n,

Confusing any other ideas, why it's fine with other roms, but not with sfiii3n

Than you for putting up with me

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #9 on: March 27, 2014, 08:08:54 am »
After powering it off from the mains, is does it to all games???

Goes and starts the game fine, inializes.. Move game pad left and right fine.

Add credits, then on pressing 1 button on joypad.. Another game loads too in the games list??

You can hear both games sounds..and slows down..

My batch files contains the below

Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.  Tried removing this line to no avail.. Same problem occurs



EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #10 on: March 27, 2014, 08:15:20 am »
After powering it off from the mains, is does it to all games???

Goes and starts the game fine, inializes.. Move game pad left and right fine.

Add credits, then on pressing 1 button on joypad.. Another game loads too in the games list??

You can hear both games sounds..and slows down..

My batch files contains the below

Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.  Tried removing this line to no avail.. Same problem occurs
You launch MAME 2 times, you get MAME 2 times...  :dunno

a) you don't launch a front end.
b) you don't let the batch file wait for the first MAME to exit.
c) you did not read the advice you were given about a) and b).

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #11 on: March 27, 2014, 09:12:12 am »
Apologies just spent a few days on it, still confused...

Do you have an example of  script, to explain, as I can't see we're it's launching twice..

Thank you

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #12 on: March 27, 2014, 09:48:39 am »
Apologies just spent a few days on it, still confused...

Do you have an example of  script, to explain, as I can't see we're it's launching twice..

Thank you
Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.

DeLuSioNal29 already did in the 6th post of this topic...

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #13 on: March 27, 2014, 10:22:45 am »
Thank you,

But somehow mameware loads 2 times.

When pressing 1 on joypad, and loads another game on the game list..

I don't know how to stop this.

Cheers

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #14 on: March 30, 2014, 01:48:48 pm »
Right..

Mamewah launches once in startup..

So I removed this.. And still launches twice..

Weird..

Any other suggestions

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 11:01:57 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #15 on: March 30, 2014, 03:25:02 pm »
ugh... Ok, I've stood all I can stands, and I cants stands no more.

Your batch file to load ONE rom

cd\
cd c:\mame
mame.exe sf2.

Note that if you do this you can NOT launch a front-end via adding it to startup.. EVER.  If you add a shortcut to a FE in startup it will NOT wait until the batch file finishes.  That is NOT how windows works.  It loads everything in startup as it goes, not one at a time and even if it did, the way a standard batch file is written, it closes as soon as mame is launched.  Mame might still be around, but the batch file is long gone. 

If you want to launch a rom and startup AND launch a fe afterwards, which is the only possible way that the batch people have suggested wouldn't work (unless you still haven't removed that last line like the others suggested, in which case there is no hope for you), you do this.

cd\
cd c:\mame
start /wait mame.exe sf2
cd\
cd c:\mala
mala.exe

Again, you do NOT do anything like add a shortcut to your front-end at startup, or add it to the registry list of starting programs or anything..... that method will NOT work.  Batch files don't halt and other programs don't wait for them, unless you code them to do so.

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #16 on: March 30, 2014, 04:20:19 pm »
Now let's see if he actually can and will read...

shinejinx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:April 24, 2014, 10:12:17 am
  • I want to build my own arcade controls!
Re: How to create a batch file to boot from Rom after Windows startup??
« Reply #17 on: March 31, 2014, 06:17:51 am »
Thank you for the clarification, makes sense now,

i'll double check my batch files and start up folder and registry to remove FE shortcut on start up.

Ill give another try.

cheers guys