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
Uses
lnk
Begin
lnk = ReadShortcut("My Shortcut.lnk")
MessageBox(lnk.lTargetPath)
Free(lnk)
End
Stay Subscribed
RSS feed or get updates by e-mail.
, subscribe to theYou can also contact me directly - I make an effort to reply to every e-mail.