📄 创建快捷方式.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 1695
ClientLeft = 60
ClientTop = 345
ClientWidth = 4470
LinkTopic = "Form1"
ScaleHeight = 1695
ScaleWidth = 4470
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "确 认"
Height = 315
Left = 3180
TabIndex = 5
Top = 1170
Width = 945
End
Begin VB.Frame Frame1
Caption = "请选项创建快捷方式的位置"
Height = 915
Left = 120
TabIndex = 1
Top = 120
Width = 4095
Begin VB.CheckBox Check3
Caption = "桌面"
Height = 225
Left = 2970
TabIndex = 4
Top = 390
Width = 885
End
Begin VB.CheckBox Check2
Caption = "启动"
Height = 225
Left = 1665
TabIndex = 3
Top = 390
Width = 885
End
Begin VB.CheckBox Check1
Caption = "程序组"
Height = 225
Left = 360
TabIndex = 2
Top = 390
Width = 885
End
End
Begin VB.CommandButton Command1
Caption = "取 消"
Height = 315
Left = 2220
TabIndex = 0
Top = 1170
Width = 945
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function fCreateShellLink Lib "VB5STKIT.DLL" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long
Private Sub Command1_Click()
Check1.Value = 0
Check2.Value = 0
Check3.Value = 0
End Sub
Private Sub Command2_Click()
If Check1.Value = 1 Then
fCreateShellLink "", "计算器", "c:\windows\calc.exe", ""
End If
If Check2.Value = 1 Then
fCreateShellLink "\启动", "计算器", "c:\windows\calc.exe", ""
End If
If Check3.Value = 1 Then
fCreateShellLink "..\..\桌面", "计算器", "c:\windows\calc.exe", ""
End If
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -