Get target of shortcut folder

前端 未结 7 769
名媛妹妹
名媛妹妹 2020-11-27 19:31

How do you get the directory target of a shortcut folder? I\'ve search everywhere and only finds target of shortcut file.

7条回答
  •  自闭症患者
    2020-11-27 20:08

    All file shortcuts have a .lnk file extension you can check for. Using a string for example, you could use string.EndsWith(".lnk") as a filter.

    All URL shortcuts have a .url file extension, so you will need to account for those as well if needed.

提交回复
热议问题