Results 1 to 4 of 4

Thread: Changing directory

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    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.

  3. #3
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    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.

  4. #4
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    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
  •  



Click Here to Expand Forum to Full Width