Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Jun : Execute another program?

www.cryer.info
Managed Newsgroup Archive

Execute another program?

Subject:Execute another program?
Posted by:"Keith Wright" (keitho..@telusplanet.net)
Date:Fri, 22 Jun 2007 12:05:50

This is probably real simple but I am obviously missing something.
I want to execute another program in the OnClick event of a Delphi
application.

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute('MyOtherApplication.exe');
end;

What is the easiest way to do this?

Thanks,

Keith Wright
Delphi Developer
CANADA

Replies:

www.cryer.info
Managed Newsgroup Archive