如图,用IWshRuntimeLibrary来获取,只能获取到文件夹类型快捷方式的目标,获取不到计算机类型快捷方式的目标。
各位大佬有什么方法吗?
已解决,感谢大佬的文章
文章出处:https://www.cnblogs.com/cssmystyle/archive/2011/01/25/1944551.html
DeepSeek和豆包写的一点用都没有,两个都是写
string GetPath(StringBuilder pszFile, int cchMaxPath, IntPtr pfd, uint fFlags);
shellLink.GetPath(targetPath, targetPath.Capacity, IntPtr.Zero, 0);
根本获取不到