How to follow a .lnk file programmatically

前端 未结 5 718
故里飘歌
故里飘歌 2020-12-10 04:24

We have a network drive full of shortcuts (.lnk files) that point to folders and I need to traverse them programmatically in a C# Winforms app.

What practical

5条回答
  •  时光取名叫无心
    2020-12-10 04:52

    The IShellLink interface lets you manipulate .lnk files, though it's a bit of a pain to use from C#.

    This article has some code implementing the necessary interop gubbins.

    Update

    You can find the code from the article here but the page doesn't seem to work in Firefox. It does work in IE.

提交回复
热议问题