• Welcome to ForumKorner!
    Join today and become a part of the community.

[Delphi] open programs from delphi

djfshady

Member
Reputation
0
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:
ShellExecute(Handle, 'Open', 'notepad', nil, nil, SW_SHOW);

To open the broswer and to go to a specific page use the following line.

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