Main > Software Forum
Maximus Arcade - Running Batch files
(1/2) > >>
Moose13:
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?
Gamester:
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.
Moose13:
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.
Thenasty:
try


i:
cd\PROGRAM PATH\PROGRAM PATH
PROGRAM EXE
Moose13:
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:
Navigation
Message Index
Next page

Go to full version