I normally don't have trouble setting up buttons but for some reason this one is eluding me.
The app is MAME, it's an arcade machine emulator. Games are stuffed inside a directory. To launch a particular game with the CLI, you just call the executible and name the game. It all works fine from the command prompt:
mame.exe mario
I'm trying to set up a button to launch games. I created a blank file named "mario", and the button uses the following code:
Try adding cd {sourcepath} as the first line (assuming that when you tried via a command prompt, the current directory was the one with "mario" in it).
No, the directory with the exe didn't have the "mario" file in it. I'm just using the blank "mario" file elsewhere to send the game name to the executable.
Essentially I'm setting up a menu with different system names in it, and the idea is to enter a games directory, select a ROM, then select a system from the menu to launch the emulator. My blank file is just a workaround for another issue involving subdirectories that I can't get around because of the nature of MAME.
All I'm really trying to do is to pass "mario" or "vs10yardu" or whatever game code to mame.exe by selecting a file then clicking a menu item.