Extract Icon from Windows .lnk (shortcut) file

后端 未结 6 892
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 13:36

I need to extract the icon from a windows shortcut (.lnk) file (or find the icon file, if it\'s just pointed to by the shortcut).

I\'m not asking about extracting ic

6条回答
  •  一整个雨季
    2020-12-01 14:01

    To add a few more resources to this, because presumeably you wan't the Application's icon and not icon that has the shortcut in the bottom left corner:

    • Here's how to parse the LNK format using the WinApi's IShellLink
    • An IShellLink definition
    • The LNK format if you don't want to use IShellLink to parse it

提交回复
热议问题