shortcut.bas
来自「内存搜索」· BAS 代码 · 共 17 行
BAS
17 行
Attribute VB_Name = "ShortCut"
Option Explicit
'Before use this module, you must reference Windows Script Host Object Modal from Project->Reference
Public Sub CreateShortCutOnDeskTop(ByVal Name As String, ByVal Description As String)
Dim x As New IWshRuntimeLibrary.IWshShell_Class
Dim y As IWshRuntimeLibrary.IWshShortcut_Class
Set y = x.CreateShortcut(x.SpecialFolders.Item("AllUsersDesktop") & "\" & Name & ".lnk")
y.TargetPath = App.Path & "\" & App.EXEName
y.Description = Description
y.WorkingDirectory = App.Path
y.Save
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?