|
-
Jan 3rd, 2000, 06:08 AM
#1
Thread Starter
Lively Member
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?
-
Jan 3rd, 2000, 06:18 AM
#2
Junior Member
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
-
Jan 4th, 2000, 03:11 AM
#3
Thread Starter
Lively Member
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
-
Jan 4th, 2000, 03:19 AM
#4
The ShellExecute API has a lpDirectory parameter. Set this to the working directory.
-
Jan 4th, 2000, 03:26 AM
#5
Hyperactive Member
u can just specify lpfile, u can leave lpdirectory as a vbnullstring
------------------
cintel rules 
www.cintelsoftware.co.uk
-
Jan 4th, 2000, 03:41 AM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|