How can I test programmatically if a path/file is a shortcut?

后端 未结 3 1002
滥情空心
滥情空心 2021-01-02 12:23

I need to test if a file is a shortcut. I\'m still trying to figure out how stuff will be set up, but I might only have it\'s path, I might only have the actual contents of

3条回答
  •  感动是毒
    2021-01-02 12:33

    You can simply check the extension and/or contents of this file. It contains a special GUID in the header.

    Read this document.

提交回复
热议问题