⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shortcut.bas

📁 内存搜索
💻 BAS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -