Open an executable under Delphi

Asked By 10 points N/A Posted on -

Hello Techyv Guys, I need to open or run an executable like that of Freecell or Setup. Please guide me about, how to open an executable under Delphi source. Thanks

Answered By 0 points N/A #198755

Open an executable under Delphi


Hello Zacharytyshawn,

Good Day!

To launch an application or execute a file in Win32 environment we will use the ShellExecute Windows API function. Check out the help on ShellExecute for full description of parameters and error codes returned. 

As you will see we can open any type of document from our program without knowing which program is associated with it (this link is defined in the Windows Registry). 

You may download the code that attached below.



Quinn Poon

Login/Register to Answer

Related Questions