📄 module3.bas
字号:
Attribute VB_Name = "runfile"
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWND As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Function ShellFile(path As String)
ShellFile = ShellExecute(FrmMain.hWND, "open", path, "", "", 1)
End Function
Public Function GetFileName(ByVal path As String) As String
path = StrReverse(path)
path = Left(path, InStr(path, "\") - 1)
path = StrReverse(path)
GetFileName = path
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -