Finding the shortcut a Windows program was invoked from

后端 未结 2 575
生来不讨喜
生来不讨喜 2020-12-11 09:47

Is there a way for a Windows program to find out what shortcut (i.e. .lnk file), if any, it was invoked from, so that it can pick up the shortcut\'s icon?

2条回答
  •  既然无缘
    2020-12-11 10:09

    See this thread http://social.msdn.microsoft.com/Forums/en-IE/csharplanguage/thread/31cc117e-7726-475c-b9e4-b8041409ce85

    I think cmd line params are the only way.

提交回复
热议问题