Skip to main content

Package for parsing Microsoft Shell Link (.lnk) files

Project description

ShellLnk

Package for parsing Microsoft Shell Link (.lnk) files

This package consists of a parsing class shelllnk.ShellLnk. To use,

from shelllnk import ShellLnk
open(myfile, "rb") as fd:
   shell_link = ShellLnk.parse(fd)

You may want to read the Microsoft spec on shell links to understand the different parts of a shell link file. The file format doc is at https://msdn.microsoft.com/en-us/library/dd871305.aspx

The stuff that I use is ShellLnk.file_attributes and ShellLnk.device_name or ShellLnk.net_name and ShellLnk.common_base_path_suffix. The device name or net name tell you the drive letter or mount point and the suffix gives you the path after that.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shelllnk-1.0.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

shelllnk-1.0.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page