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?
Printable View
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?
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
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
The ShellExecute API has a lpDirectory parameter. Set this to the working directory.
u can just specify lpfile, u can leave lpdirectory as a vbnullstring
------------------
cintel rules :p
www.cintelsoftware.co.uk
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).