Click to See Complete Forum and Search --> : Running .exe s
markwestcott
Jan 3rd, 2000, 05:08 AM
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?
JoeH
Jan 3rd, 2000, 05:18 AM
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
markwestcott
Jan 4th, 2000, 02:11 AM
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
Frans C
Jan 4th, 2000, 02:19 AM
The ShellExecute API has a lpDirectory parameter. Set this to the working directory.
KENNNY
Jan 4th, 2000, 02:26 AM
u can just specify lpfile, u can leave lpdirectory as a vbnullstring
------------------
cintel rules :p
www.cintelsoftware.co.uk
markwestcott
Jan 4th, 2000, 02:41 AM
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).
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.