VbScript脚本方式创建桌面快捷方式
来源:互联网 发布:电脑跑分软件 编辑:程序博客网 时间:2024/06/02 03:09
'以下为VbScript脚本Set WshShell = WScript.CreateObject("WScript.Shell")appdataDir = WshShell.SpecialFolders("APPDATA") '获取"程序数据"目录currentDir = WshShell.CurrentDirectory '获取脚本当前目录desktopDir = WshShell.SpecialFolders("Desktop") '获取"桌面"文件夹目录taskbarDir = appdataDir & "\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"CreateLnk(desktopDir)'桌面快捷'在指定路径创建一个360极速浏览器的快捷方式Sub CreateLnk(str)Set oShellLink = WshShell.CreateShortcut(str & "\360极速浏览器.lnk")oShellLink.TargetPath = currentDir & "\360chrome.exe" '目标oShellLink.WindowStyle = 3 '参数1默认窗口激活,参数3最大化激活,参数7最小化oShellLink.Description = "360极速浏览器快捷方式" '备注oShellLink.WorkingDirectory = str '起始位置oShellLink.Save '创建保存快捷方式End Sub' 删除脚本自身Set fso = CreateObject("Scripting.FileSystemObject") f = fso.DeleteFile(WScript.ScriptName)
0 0
- VbScript脚本方式创建桌面快捷方式
- 创建锁定桌面快捷方式
- 创建桌面快捷方式
- 创建linux桌面快捷方式
- 如何创建桌面快捷方式
- DELPHI创建桌面快捷方式
- WinCE创建桌面快捷方式
- wince创建桌面快捷方式
- ubuntu 创建桌面快捷方式
- C++创建桌面快捷方式
- 创建桌面快捷方式
- 桌面快捷方式的创建
- linux创建桌面快捷方式
- Ubuntu创建桌面快捷方式
- python 创建桌面快捷方式
- 创建桌面快捷方式
- vc 创建桌面快捷方式
- android 创建桌面快捷方式
- ZOJ2972-Hurdles of 110m
- 【小试牛刀篇】CodeBlocks 16.0.1下搭建OpenCV 2.4.11(一)
- 简单阐述深度学习与机器学习的差异
- android浏览网页出现binder_alloc_buf, no vma
- android监听虚拟键盘隐藏和显示事件
- VbScript脚本方式创建桌面快捷方式
- 计算表达式 栈
- 常用的推荐算法小结
- php删除数组中指定元素,自定义函数
- Android 动态库/静态库(.a|.so)
- Android NestedScrolling机制完全解析 带你玩转嵌套滑动
- springmvc json xml
- ZOJ2974-Just Pour the Water
- Struts2之Action的配置