- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

Executing a '.LNK' file

Question:

Q) How can I execute a '.LNK' file?

Answer:

A) The following example demonstrates executing a .lnk file in the
Windows start menu.

Example:

uses ShellApi;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(0,
               nil,
               'C:\WINDOWS\START MENU\DELPHI\Delphi3.lnk',
               nil,
               nil,
               SW_SHOWNORMAL);

end;



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile