This content is provided AS IS for archive purposes only. Content may be out of date with no guarantee of correctness.

ReadShortcut - Lnk for Cobra - Static

Main Article

ReadShortcut - Lnk for Cobra

Function ReadShortcut(lnkpath:String, [debug:Boolean=FALSE]) :^lnks

lnkpath: The path to a shortcut file. If the file extension ".lnk" is not included, it will be appended automatically

debug: When TRUE, the contents of the shortcut file will be written to a file with the .bin file extension, for easy analysis with a hex editor.

This function reads a shortcut file and returns a handle to a lnk record.

Example: (For a full example, see the program in the Example directory)

Program
  Uses

      lnk

Begin
  lnk = ReadShortcut("My Shortcut.lnk")
  MessageBox(lnk.lTargetPath)
  Free(lnk)
End

Stay Subscribed

Follow me on twitter @golightlyb, subscribe to the RSS feed or get updates by e-mail.

You can also contact me directly - I make an effort to reply to every e-mail.


Login
v0.34.archive