pylnk icon indicating copy to clipboard operation
pylnk copied to clipboard

Python library for reading and writing Windows shortcut files (.lnk). Python 3 only.

Results 11 pylnk issues
Sort by recently updated
recently updated
newest added

As it is noted in #22 the current implementation only works when the target is present on the system where pylnk3 is used. This PR adds support for nonexistent ("imaginary")...

If I run the following command on a linux system: ``` pylnk3 c C:\Windows\notepad.exe notepad.lnk ``` .. and transfer it on a windows host, the LNK file seems to be...

As noted here: https://stackoverflow.com/questions/39365489/how-do-you-keep-diacritics-in-shortcut-paths The `WScript.Shell` implementation does not support diacritic characters in an Unicode string in case of `TargetPath` shortcut property. But this module has the same issue: `c:\1.txt.lnk`...

The utility can be used to print link attributes: ```cmd pylnk3 p link.lnk __dict__ pylnk3 p link.lnk _shell_item_id_list.__dict__ ``` But some inner attributes is not accessible: ```cmd pylnk3 p link.lnk...

I believe pylnk is intended to be used as a library, but it is a single-file that includes the CLI code. I cannot see any documentation for the API. I...

The following simple code results in an unusable .lnk file: _import pylnk3 shortcut = pylnk3.for_file("C:/Users/Flo/Desktop/💚 hello.txt") shortcut.save("C:/Users/Flo/Desktop/test.lnk")_

Hello, We can't pass "--" args, like **test.lnk --arguments --incognito** Example : ``` pylnk3.py c "C:\Program Files\Google\Chrome\Application\chrome.exe --incognito" test.lnk --arguments --incognito usage: pylnk3.py [--help] {p, c, d} ... pylnk3.py: error:...

* `Windows 8.1 x64` * `Python x64 3.12.1` * Branch: `json` If try to parse that shortcut file: https://github.com/andry81/contools/blob/master/Scripts/Tools/ToolAdaptors/lnk/mycomputer.lnk > pylnk p mycomputer.lnk --json ```cmd Traceback (most recent call last):...

* `Windows 8.1 x64` * `Python x64 3.12.1` * Branch: `json` If try to parse that old shortcut format file: https://github.com/andry81/contools/blob/master/Scripts/Tools/ToolAdaptors/lnk/cmd.lnk > pylnk p cmd.lnk --json ```cmd Traceback (most recent...

Tested version: > `python -m pip install git+https://github.com/strayge/pylnk@dev` If try to create a shortcut with the long path, then it would be created: ``` >pylnk3 c c:\11111\22222222222222222222222222222222222222222222222222\333333333333333333333333333333333333333333333333333\444444444444444444444444444444444444444444444444444\5555555555555555555555555555555555555555555555555\6666666666666666666666666666666666666666666666666\777777777777777777777777777777777777777777777777777\1.txt 1.lnk >pylnk3 p...