|
-
Jan 13th, 2004, 04:24 PM
#1
Thread Starter
Frenzied Member
Changing directory
Hey,
I link to a program from my program.
I start it by shelling to it and passing it some info.
I spoke to the guy who created that software as come clients are having problems starting his app.
He told me to change the directory to his app's before launching it as the security is failing.
What does it mean? CHange the directory? Does it matter where I call his exe from?
Thanks,
Don't anthropomorphize computers -- they hate it
-
Jan 13th, 2004, 04:44 PM
#2
Well, you can just:
A) when shelling, give there the application path, so the application will be launched using its home path
B) use ChDrive and change CurDir to the application path
C) do both
And the reason? Either bad coding by the creator of the other app or then just some other weird reason you can't know of without seeing the code.
Last edited by Merri; Jan 13th, 2004 at 06:17 PM.
-
Jan 13th, 2004, 05:41 PM
#3
Frenzied Member
It is probably using the Working directory for something. So if you just Shell it, the working directory is probably still your App path.
I would think B above would solve that.
-
Jan 13th, 2004, 06:19 PM
#4
Of course there is ShellExecute API, which lets you include starting path in it. I haven't used it to run apps though... but I guess it should run apps fine aswell.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|