Jump to content

How to make Batch Start files in Windows

Phoenix66

I recently made a thread asking about emulators, and after I have installed them, I now want to start my ROMS by a batch file. After looking online I tried to find a way to do it and this was the best I could come up with. 

@Echo OFF

start C:\Desktop\Roms\Gamefile (Obviously the name of the rom I want to start.)

What am I doing wrong? I have set the default program to open the file with, I'm just trying to figure out how to start the Rom from a batch file. (Or do I need a exe file?) 

Link to comment
Share on other sites

Link to post
Share on other sites

try adding to the end

@Echo OFF

start C:\Desktop\Roms\Gamefile (Obviously the name of the rom I want to start.)

end

Link to comment
Share on other sites

Link to post
Share on other sites

It says to check and see if spelling is correct. (And it is) and than try again. 

Link to comment
Share on other sites

Link to post
Share on other sites

Okay so try this

"C:\Desktop\Roms\Gamefile"

Put quotes around it too.

e.g. (Just an example)

"D:\Emulators\Roms\SNES\myPersonalGame.smc"

This assumes there are file associations though

0b10111010 10101101 11110000 00001101

Link to comment
Share on other sites

Link to post
Share on other sites

And if that doesn't work, try

start "C:\where_ever_the_emulator_is\emulator" "C:\Desktop\Roms\Gamefile"

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

Not sure if your location is just an example, but "Desktop" isn't located on C:. Make sure that the path is correct.

Link to comment
Share on other sites

Link to post
Share on other sites

In CMD if your game is located on a seperate drive to the drive windows is installed on you do not need to type the CD command. Just type the drive you want to change to. Example, you want to access a flash drive with the path D:\, simply type D: and press enter.

 

Example. I want to work on a directory on a the D drive i would type the following commands.

D:CD D:\Origin Games\Plants vs. Zombies

Now to start the game file itself, for this example a .exe file labeled "PlantsVsZombies.exe" I would type the name of the game file and press enter:

PlantsVsZombies.exe

Remember if the file name has spaces in the name, it must be inside quotation marks ("). For example:

"Plants Vs Zombies.exe"
Link to comment
Share on other sites

Link to post
Share on other sites

I think he means hes  trying to start Emulator games through the emulator with use of a command line (Batch)
 

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

C:\Users\your username\Desktop

 

as @r3bify said: the desktop is located under C, users, username, desktop , and not in your main C folder

build log: diagonalmod (RIP?)


i know i use many of these: ( ) and these: ... (i really do... (sry...) ) edit: and edits

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×