Windows LNK File Parser and Creator
Python library for reading and writing Windows shortcut files (.lnk)
This library can parse .lnk files and extract all relevant information from them which is especially helpful if you need to do this on a non-ms-windows machine. Parsing a .lnk file yields a LNK object which can be altered and saved again. Moreover, .lnk file can be created from scratch be creating a LNK object, populating it with data and then saving it to a file. As that process requires some knowledge about the internals of .lnk files, some convenience functions are provided.
Limitation: Windows knows lots of different types of shortcuts which all have different formats. This library currently only supports shortcuts to files and folders on the local machine.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.