代表快捷方式的对象。
获取:
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
后才会出现在磁盘。
本文共 295 字,大约阅读时间需要 1 分钟。
代表快捷方式的对象。
获取:
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
后才会出现在磁盘。
转载于:https://www.cnblogs.com/xuejianbest/p/10285048.html