Re: Where is Executable File

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If you simply want to open a document in its associated program, use
ShellExecute as Mark suggested, but if ou want to find the associated
executable, use FindExecutable.

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com


"Bruce Kingsley" <brucek5@xxxxxxxxxxxxxx> wrote in message
news:yPDFe.5677$Uk3.3421@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I need to launch the executable file associated with a file in a directory
> the same way Windows Explorer does when you double click on a .DOC and it
> launches MSWord.EXE and passes the DOC file as a argument.
>
> Is there a single function that does this or do I need to do some kind of
> look-up to find what the file type is associated with?
>
> --
>
>
> Regards;
>
> Bruce Kingsley
>
>
>
>


.



Relevant Pages

  • Re: I want to open a doc file in window dir using informix 4gl
    ... >> I want to open a doc file in window dir using informix 4gl? ... >> we are using informix Standard Engine and Sco Unix. ... >> regards Trisha ...
    (comp.databases.informix)
  • Re: Show QuickLaunch
    ... >>> UserInterfaceCore Component and all the said keys are present in the ... >> can't get the Quick Launch working at all. ... >>> particular registry to set the Quick Launch. ... >> Regards, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Some applications no longer launch
    ... Best Regards ... Ian S ... Clicking the desktop icon fails to launch the program. ... fix the problem (though it created some more, now resolved, wiith Windows ...
    (microsoft.public.windowsxp.general)
  • Re: Opening Word programatically
    ... I am working with a VB form and want to launch a mail-merge ... :> For example customerid, CustomerName, address1,....Fieldnnn. ... :> So, how can I launch a word letter with parameters, and what sort of ... :> Regards and seasons greeting to all ...
    (microsoft.public.word.vba.general)
  • Re: Creating programs that run Executables
    ... I did request to keep it simple and this is what I wanted. ... Regards, ... >> Okay, ... >> launch the selected executable? ...
    (microsoft.public.vb.winapi)