Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: Moose13 on April 07, 2007, 07:38:39 pm
-
Anyone here using Maximus Arcade? I know, I know, the whole $$ thing, but I think it's a great piece of software.
BUT, I'm having trouble running batch files in MA. The batch files work perfectly through Windows, but when they are run in MA, they always have errors. Most of them can't find specified files. Seems to me that although it finds the main exacutable file in the correct location, it can't find any subsequent files. Maybe somehow it's retaining the file folder from where the bat file is? ???
Anyone havbe this probelm and get past it?
-
Sounds like a working directory path issue. Within your script you need to change your "working" directory to the directory that contains the files you are calling. For intance, if your batch file and all of the files it references are in D:\Emulation\Batch, you need to add something like this your batch:
D:
CD \Emulation\Batch
Another method is using pushd/popd commands:
pushd D:\Emulation\Batch
Then if you want to return to the previous folder you simply use "popd"
Hope that helps.
-
Thanks for the advice. I was looking for something to retain the directory.
So, it works again in windows, but not through Maximus Arcade.
I just don't know why.
Here's the code I wrote:
:: Hamsterball
::
@ECHO OFF
pushd I:\Emulators\Hamsterball310\
hamsterball.exe
Before I had:
:: Hamsterball
::
@ECHO OFF
I:
CD Emulators\Hamsterball310\
hamsterball.exe
Both worked in windows, but not in MA. I do however get a different result.
In your case I gate a Windows explorer window, like it's looking for the file or something.
It the second case (actually my original code) I got an error that hamsterball couldn't find an associated file.
BTW, great game for the trackball, a bit easy though. The kids love it.
-
try
i:
cd\PROGRAM PATH\PROGRAM PATH
PROGRAM EXE
-
Same thing. Works in indows, but not through MA.
I know it's not only me. Others are having the same problem.
It starts to load the game, but then has an error that it can't load a texture file. My guess is that once it launces the program it doesn't hold the directory structure and diverts back to the directory where the batch file exists, so it can't find and subsequent files. :dizzy:
-
I saw that issue in Windows Media Center as well with same path issue. Got only one test game to work (Crasy Frog). One of them that didden't work was Airstrike 2 Demo (patch issue as destripted here).
Would the same path issues with these 2 games in MA as well? I wich they did, and why?
Why do the bat file not cd path correct?