Re: Shellexecute question



On Sun, 18 Dec 2005 23:24:50 -0000, "Mike Glazer"
<glazer@xxxxxxxxxxxxxxxx> wrote:

>I want to run a Shellexecute in my Delphi pascal program to run a registered
>software program. However, suppose I dont know in which directory the
>executable exists (usually in Program Files, but it may be located in
>dofferent places on different machines). How can specify the runnable
>software without knowing specifically the location of the relevant exe file?

If the app is registered to handle particular file types, search for
the name of the executable in the registry, under HKEY_CLASSES_ROOT.
Below this there should be a shell key and below this individual keys
for Edit, Open, Preview, etcetera. Below each of these again there
should be a command key, which will contain a default REG_SZ value,
part of which should be the full path to the executable.



.


Quantcast