Главная страница | назад





Article #15818: Executing a '.LNK' file

 Question and Answer Database
FAQ818D.txt Executing a '.LNK' file
Category :Windows API
Platform :All
Product :All 32 bit
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;
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99