引用com组件Windows Script Host Object ModelIWshRuntimeLibrary.WshShortcut sc = new IWshRuntimeLibrary.WshShortcut();
sc.Load("D:\\111.lnk");
string s = sc.TargetPath;

解决方案 »

  1.   

    .lnk文件也不复杂,你可以稍微研究一下。
      

  2.   

    IWshRuntimeLibrary.WshShortcut sc = new IWshRuntimeLibrary.WshShortcut();
    运行到这里,弹出异常:
    未处理的“System.Runtime.InteropServices.COMException”类型的异常出现在 test.exe 中。其他信息: 带有 CLSID {A548B8E4-51D5-4661-8824-DAA1D893DFB2} 的 COM 对象无效或未注册。
      

  3.   

    http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp