Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从我到现在为止的阅读中,您可以获得类 Shortcut 对象的 TargetPath 属性,它是 WScript.Shell 的 CreateShortcut 方法的结果。
但是我还没有找到任何方法来获取现有快捷方式的目标路径。
在 JavaScript 中:
var sh = WScript.CreateObject("WScript.Shell"); var sc = sh.CreateShortcut(shortcutPath); var targePath = sc.TargetPath;
我花了一些时间来理解它。所以我想至少会有一个人乐于在这里找到答案。
通过使用 .path 属性?
http://www.bigresource.com/VB-Get-the-stored-path-from-a-shortcut--UWlkOW9XKz.html