Board index » delphi » Creating a file link?

Creating a file link?

Hello, out there.
Can someone show me the right direction what I have to do create a link file
(*.lnk) under Windows NT 4.0 with Delphi 2.01?
Any API calls, sample code or URLs?

TIA,
Matthias.

 

Re:Creating a file link?


Hi Matthias,

Only the right direction? OK.

   uses OleCtrls, ShlObj, ActiveX, ComObj;
   set Registry 'HKEY_CURRENT_USER\Software\Microsoft\Windows\
                 CurrentVersion\Explorer\Shell Folders\Desktop
   then CreateComObject(CLSID_ShellLink);

If you want an example, send an email.

Rudy
=============================================================
Matthias Thiel schreef:

Quote

> Hello, out there.
> Can someone show me the right direction what I have to do create a link file
> (*.lnk) under Windows NT 4.0 with Delphi 2.01?
> Any API calls, sample code or URLs?

> TIA,
> Matthias.

Other Threads