Page 1 of 1

windows shortcut (.lnk): read/write description (resp. comment)

Posted: 05 Dec 2016 13:55
by autocart
Hi all,

Is it possible to read the description (resp. comment) of a windows shortcut (.lnk) file with native XY means (or native Windows 7+ means) from within XY?

I would like to make a custom column displaying this description (resp. comment) of a lnk-shortcut and also make a XY script that allows me to easily change it. (I know it is possible with autoit3 or autohotkey but it would be better if it was not depending on 3rd party tools.)

Re: windows shortcut (.lnk): read/write description (resp. comment)

Posted: 05 Dec 2016 15:46
by highend
.url files follow the same rules as .ini files. So if one of your .url files contain something like "Description=" or "Comment="... getkey() is your friend. Storing it, setkey()?

Re: windows shortcut (.lnk): read/write description (resp. comment)

Posted: 05 Dec 2016 17:47
by autocart
I was asking about .lnk files, not about .url files. But never mind. Its not that important anymore.