Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1481171
  • 博文数量: 226
  • 博客积分: 3997
  • 博客等级: 少校
  • 技术积分: 2369
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-19 17:26
个人简介

Never save something for a special occasion. Every day in your life is a special occasion.

文章分类

全部博文(226)

文章存档

2018年(5)

2017年(11)

2016年(1)

2015年(17)

2014年(14)

2013年(30)

2012年(5)

2011年(52)

2010年(107)

分类: Windows平台

2015-02-04 14:16:35

[转]命令行创建快捷方式的批处理脚本
http://blog.csdn.net/tan_jianhui/article/details/5969496

批处理中直接执行vbs的方法_DOS/BAT_脚本之家


命令行创建快捷方式.bat

点击(此处)折叠或打开

  1. :On Error Resume Next
  2. Sub bat
  3. echo off & cls
  4. start wscript -e:vbs "%~f0"
  5. Exit Sub
  6. End Sub

  7. MsgBox "This is vbs"

  8. Set WshShell = WScript.CreateObject("WScript.Shell")
  9. strDesktop = WshShell.SpecialFolders("Desktop")
  10. set oShellLink = WshShell.CreateShortcut(strDesktop & "/myQQ.lnk")
  11. oShellLink.TargetPath = "C:\Program Files\Tencent\QQ\QQProtect\Bin\QQProtect.exe"
  12. oShellLink.WindowStyle = 3
  13. oShellLink.Hotkey = "Ctrl+Alt+e"
  14. oShellLink.IconLocation = "C:\Program Files\Tencent\QQ\QQProtect\Bin\QQProtect.exe, 0"
  15. oShellLink.Description = "快捷方式"
  16. oShellLink.WorkingDirectory = strDesktop
  17. oShellLink.Save



阅读(2684) | 评论(0) | 转发(0) |
0

上一篇:UNIX Shell 编程(1)

下一篇:java卡

给主人留下些什么吧!~~