You are here

HELP!!! Using batch-converted-exe file to run programs in relative locations

5 posts / 0 new
Last post
Speedyg263
Offline
Last seen: 17 years 4 weeks ago
Joined: 2005-12-29 17:24
HELP!!! Using batch-converted-exe file to run programs in relative locations

OK. What I'm having trouble with is I have apps that I've made portable by registering certain files (dll, drv,etc.) with a batch file. I also use the batch file to call the program that I'm wanting to run. (When the program is closed then the files are then unregistered).
I know that the Portable Apps Menu will not recognize batch files, so I use a batch-to-exe converter. I can run the batch file by itself and it will run fine. However, when I run it from the portable apps menu it says that it cannot find the the location of the file that I'm wanting to run.
*I have the batch file setup to locate files in relative folders rather than exact locations, because the drive letter changes according to what computer I am using.
Does anyone know a way to correct this?

Thank you in advance,
Brandon

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I guess

You have the latest beta of the menu?
Because your problem seems to be the "worlḱing directory problem" to me. Only it beta2, the working dir of each exe is actually the folder it is located. Some exes require this. So try downgrading the menu.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Speedyg263
Offline
Last seen: 17 years 4 weeks ago
Joined: 2005-12-29 17:24
Still No Luck

I've tried it with both releases, and I still haven't had any luck. They both give me the same problem.
Thanks though

Nerd
Offline
Last seen: 15 years 5 days ago
Joined: 2006-03-29 17:50
Before the line that starts

Before the line that starts the program, put cd \{folder app is in}

Speedyg263
Offline
Last seen: 17 years 4 weeks ago
Joined: 2005-12-29 17:24
works

that seems to work, however when I try to change the app icon (using a resource hacker) it gives me an error.

Log in or register to post comments