[Delphi] open programs from delphi

A Place For Programmers Of All Levels To Discuss Programming & Web Building.

Moderator: Community Moderator

Post Reply
User avatar
djfshady
Corporal
Corporal
Posts: 25
Joined: 26 Nov 2010, 20:12
Location: United Kingdom
Been thanked: 5 times
Contact:

[Delphi] open programs from delphi

Post 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);
Image
Post Reply

Return to “Programming/Web Building Chat & Support”