Rem 以下为VbScript脚本
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop") :'特殊文件夹“桌面”
Rem 在桌面创建一个记事本快捷方式
set oShellLink = WshShell.CreateShortcut(strDesktop & "\360安全浏览器.lnk")
oShellLink.TargetPath = "C:\Program Files (x86)\Chrome-bin\360se.exe" : '目标
oShellLink.WindowStyle = 3 :'参数1默认窗口激活,参数3最大化激活,参数7最小化
oShellLink.Hotkey = "Ctrl+Alt+e" : '快捷键
oShellLink.IconLocation = "C:\Program Files (x86)\Chrome-bin\360se.exe"'图标
oShellLink.Description = "360浏览器快捷方式" : '备注
oShellLink.WorkingDirectory = strDesktop : '起始位置
oShellLink.Save : '创建保存快捷方式想把第6行的目标替换为"C:\Program Files\360\360se.exe" http://www.baidu.com 这样一个目标该怎么改那
谢谢大侠
Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop") :'特殊文件夹“桌面”
Rem 在桌面创建一个记事本快捷方式
set oShellLink = WshShell.CreateShortcut(strDesktop & "\360安全浏览器.lnk")
oShellLink.TargetPath = "C:\Program Files (x86)\Chrome-bin\360se.exe" : '目标
oShellLink.WindowStyle = 3 :'参数1默认窗口激活,参数3最大化激活,参数7最小化
oShellLink.Hotkey = "Ctrl+Alt+e" : '快捷键
oShellLink.IconLocation = "C:\Program Files (x86)\Chrome-bin\360se.exe"'图标
oShellLink.Description = "360浏览器快捷方式" : '备注
oShellLink.WorkingDirectory = strDesktop : '起始位置
oShellLink.Save : '创建保存快捷方式想把第6行的目标替换为"C:\Program Files\360\360se.exe" http://www.baidu.com 这样一个目标该怎么改那
谢谢大侠
解决方案 »
- 中控指纹考勤系统
- 逻辑思维是否可以培养?
- ASP中调用AES加、解密组件,难度高,本人菜,在线等待给100,不够再加分!
- treeview删除添加节点出错:run-time error '35605,This item's control has been deleted--在线等待
- VB函数的参数如何设置成变长
- 动态控件的事件响应问题。。。请高手帮忙!
- sqlserver连接问题!(在线等待,马上给分)
- 关于上下标的问题
- 行集合不能作为标签
- 用VB的Package & Deployment Wizard制作安装程序,如何加上Uninstall?
- 在EXCEL编程中Range作参数提示编译错误,对象使用无效
- 关于VB修改文本文件内容后出现乱码的问题。
那在 oShellLink.Save 之前加上这一句就可以了:
oShellLink.Arguments = "http://www.baidu.com"