码迷,mamicode.com
首页 > 其他好文 > 详细

VBS 创建快捷方式

时间:2015-09-04 18:27:47      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

Dim Shell,DesktopPath,link

Set Shell = CreateObject("WScript.Shell")

DesktopPath = Shell.SpecialFolders("Desktop")

Set link = Shell.CreateShortcut(DesktopPath & "\Aimp2.lnk")

link.TargetPath = shell.CurrentDirectory & "\Aimp2.exe"

link.WindowStyle = 1

link.WorkingDirectory = shell.CurrentDirectory

link.Save

Set Shell = Nothing

Set link = Nothing

VBS 创建快捷方式

标签:

原文地址:http://www.cnblogs.com/lbnnbs/p/4781991.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!