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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
autocart
Posts: 1391
Joined: 26 Sep 2013 15:22

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

Post 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.)

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post 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()?
One of my scripts helped you out? Please donate via Paypal

autocart
Posts: 1391
Joined: 26 Sep 2013 15:22

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

Post by autocart »

I was asking about .lnk files, not about .url files. But never mind. Its not that important anymore.

Post Reply