Results 1 to 6 of 6

Thread: Running .exe s

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Posts
    79

    Post

    I am trying to run programs from my vb program using the API Shell execute command, but a lot of software does not run as it should, ie it does not find the directory of where it is being run from so that it can load up other stuff. Any ideas?

  2. #2
    Junior Member
    Join Date
    Dec 1999
    Posts
    17

    Post

    How about creating a shortcut to the EXE and running the shortcut. That way you can specify the Start In folder, and the app will run as normal.

    Hope this helps

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Posts
    79

    Post

    Thanks, but I am afraid this solution will not work. I am writing a small shell for myself and I want to be able to include a run dialog, which takes the text from a text box and runs that program. How can I do this people?

    Thanks

  4. #4
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Post

    The ShellExecute API has a lpDirectory parameter. Set this to the working directory.

  5. #5
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    u can just specify lpfile, u can leave lpdirectory as a vbnullstring


    ------------------
    cintel rules
    www.cintelsoftware.co.uk

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Dec 1999
    Posts
    79

    Post

    Kenny, are you sure. Is this what Cintel Deskpro does? I have problem doing this. All my software says to reinstall it (the software which isn't working).


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