RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Windows CMD can't see my batch file.

    Scheduled Pinned Locked Moved Help and Support
    windowscmdemulationstatonbat
    6 Posts 3 Posters 884 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mr.EmuM
      Mr.Emu
      last edited by Mr.Emu

      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.exe

      Thanks for answers in advance.
      */games/f12010 are folders made by me.

      cyperghostC 1 Reply Last reply Reply Quote 0
      • cyperghostC
        cyperghost @Mr.Emu
        last edited by

        @mr-emu Try

        <command>start %ROM%</command>
        Mr.EmuM 3 Replies Last reply Reply Quote 0
        • Mr.EmuM
          Mr.Emu @cyperghost
          last edited by Mr.Emu

          @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 ``` ?

          1 Reply Last reply Reply Quote 0
          • Mr.EmuM
            Mr.Emu @cyperghost
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • Mr.EmuM
              Mr.Emu @cyperghost
              last edited by

              @cyperghost Eventually, I found solution. instead of %ROM%, I wrote %ROM_RAW%. Anyway, thank you very much for help :D

              ClydeC 1 Reply Last reply Reply Quote 1
              • ClydeC
                Clyde @Mr.Emu
                last edited by

                @mr-emu Thank you for sharing your solution.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                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.