admin 管理员组

文章数量: 1086019


2024年3月27日发(作者:jquery在官网怎么下载)

使用VBS创建程序快捷方式

代码如下:

' 创建桌面快捷方式

' 创建开始菜单启动

Option Explicit

Private strDesktop

Private objShellLink

Private wshShell

Set wshShell = Object("")

strDesktop = lFolders("Desktop") ' 桌面

Set objShellLink = Shortcut(strDesktop & "方向检测.lnk")

With objShellLink

.TargetPath = tDirectory & "方向检测.exe"

.WindowStyle = 4

.HotKey = "ctrl+alt+c"

'.IconLocation = tDirectory & ""

.WorkingDirectory = tDirectory

.Save

End With


本文标签: 创建 官网 快捷方式 检测 方向