Windows CMD can't see my batch file.
-
Hi guys!
I know this title sounds very off Retropie topic, well it's more related to Emulationstation actually. Anyway, I have a batch file in C:/Users/username /.emulationstation/games/f12010* directory. I put there a batch file, that runs this game. If I try to run this batch file from ES, then I'll get error from cmd, that says, my batch file wasn't found. But if I try to run this .bat file from cmd, then it will work perfectly? What can I do about it? Here's my es_systems.cfg file and batch file's code:
es_systems.cfg<systemList>
<system>
<name>f12010</name>
<fullname>Formula One 2010</fullname>
<path>~/.emulationstation/games/f12010</path>
<extension>.bat .BAT</extension>
<command>start run.bat</command>
<theme>f12010</theme>
</system>
</systemList>batch file
@echo off
cd C:\Program Files (x86)\Codemasters\F1 2010
start f1_2010.exeThanks for answers in advance.
*/games/f12010 are folders made by me. -
@mr-emu Try
<command>start %ROM%</command>
-
@cyperghost Ok, I'll try it, and I'll let you know, if it worked... By the way, how did you get that text formatting? Did you get it with ``` ?
-
@cyperghost Well... I don't know how to say it... basically, it just opened cmd, but didn't execute these commands. The only difference between this cmd and "normal" cmd (i.e. opened through Windows, not ES), is path shown in cmd, in ES cmd path is C:/Program Files (x86)/EmulationStation
-
@cyperghost Eventually, I found solution. instead of %ROM%, I wrote %ROM_RAW%. Anyway, thank you very much for help :D
-
@mr-emu Thank you for sharing your solution.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.