djd*_*lib 13
添加IWshRuntimeLibrary作为项目的参考.添加引用,COM选项卡,Windows脚本主机对象模型.
以下是我获取快捷方式属性的方法:
IWshRuntimeLibrary.IWshShell wsh = new IWshRuntimeLibrary.WshShellClass();
IWshRuntimeLibrary.IWshShortcut sc = (IWshRuntimeLibrary.IWshShortcut)wsh.CreateShortcut(filename);
Run Code Online (Sandbox Code Playgroud)
快捷方式对象"sc"具有TargetPath属性.
| 归档时间: |
|
| 查看次数: |
5774 次 |
| 最近记录: |