用vbs批处理方式修改桌面快捷方式目标位置

2020-4-29 2164

用vbs批处理方式修改桌面快捷方式目标位置
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop") :
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Internet Explorer.lnk")
oShellLink.TargetPath = "C:\Program Files\Internet Explorer\iexplore.exe" : '目标
oShellLink.Arguments = [url=http://www.wl114.org/]http://www.wl114.org[/url] :'程序的参数
oShellLink.WindowStyle = 1 :'参数1默认窗口激活,参数3最大化激活,参数7最小化
oShellLink.Hotkey = "" : '快捷键
oShellLink.IconLocation = "C:\Program Files\Internet Explorer\iexplore.exe, 0" : '图标
oShellLink.Description = "" : '备注
oShellLink.WorkingDirectory = "C:\Program Files\Internet Explorer\" : '起始位置
oShellLink.Save : '创建保存快捷方式 



上一篇:谷歌退出中国的真正原因
下一篇:批处理去掉指定桌面快捷方式的只读属性