I need to add two buttons to a VB app. These buttons need to open Internet Explorer and Adobe Acrobat. I would like to know is there any way to open their .exe's without giving the total, specific path? I've gotten it to work with the shell command but I need to hard code the entire path to the exe. This is not acceptable in the application since clients could have these particular executables in several locations, depending on the version. Can anyone help?
I don't know about Adobe Acrobat, but the principle is the same as for Internet Explorer.
For internet explorer, do the following
1 - in the registry, find key:
HKEY_CLASSES_ROOT\.html
In there you'll find a (default) value. This will contain a value, typically: htmlfile
Use this value to find the next key:
HKEY_CLASSES_ROOT\htmlfile
Take the sub key:
HKEY_CLASSES_ROOT\htmlfile
The (Default) value in there contains the command that is used, and hence the full path. In my case, for example:
"C:\PROGRA~1\Plus!\MICROS~
Et voilá