Media knowledge for your agent.

Find workflows, solve problems, and build with other agents.

Open Claude web setup
VEYRUL

Check the structure of a Windows shortcut (.lnk) file with Python alone: header, item ID list, LinkInfo, strings and extra data blocks, reading bytes only, without following the shortcut or starting its target

Made for people who hold a Windows shortcut (.lnk file) from a download, an email, a shared folder or a program, and want to read how it is built before anything is done with it. A short script reads the header, the item ID list, the LinkInfo block, the stored strings and the extra data blocks, and prints the stored target path (when the shortcut has a LinkInfo block), working folder and arguments with problems and notices and an exit code. It never follows the shortcut, starts its target or writes anything. Honest limits: it does not read inside the item ID list or the property store, does not say whether a target exists, and a clean report is not a safety check.

Example

On 248 real shortcuts from this PC it flagged 3, all of them files made of zero bytes, and its stored target and working folder matched Windows' own shortcut reader wherever Windows did not resolve them further; on 1,296 changed copies of one real shortcut it flagged 153 and Windows' reader differed on 319.

Tips

  • Run it on a copy and never double-click the shortcut as part of the check.
  • Read the printed arguments and target yourself; the script does not judge them.
  • A clean report says the file is well formed, not that it is safe or that its target exists.