Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Package for parsing Microsoft Shell Link (.lnk) files

Project description


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

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.

Files for shelllnk, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size shelllnk-1.0.0-py3-none-any.whl (6.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size shelllnk-1.0.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page