Page 1 of 1

[Delphi] open programs from delphi

Posted: 24 Dec 2010, 16:04
by djfshady
Here is how you open other programs from your delphi program. In the uses make sure you add ShellAPI. The folllowing lines opens up notepad

Code: Select all

ShellExecute(Handle, 'Open', 'notepad', nil, nil, SW_SHOW);
To open the broswer and to go to a specific page use the following line.

Code: Select all

ShellExecute(Handle, 'Open', 'www.site.com', nil, nil, SW_SHOW);