VBScript:WshShortcut 快捷方式对象

代表快捷方式的对象。

获取:

set shortcut = WshShell.CreateShortcut("D:\abc.lnk")
shortcut.targetPath("D:\abc.txt")
 
set shortcut = WshShell.CreateShortcut("D:\baidu.url")
shortcut.targetPath("www.baidu.com")
 
shortcut.save 

在调用save方法前,所有操作都在内存,save后才会出现在磁盘。

posted @ 2019-01-02 15:02  xuejianbest  阅读(308)  评论(0编辑  收藏  举报