7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Dim RetVal
RetVal = Shell("C:\WINDOWS\system32\notepad.EXE " & App.Path & "\123.txt", 1)
End Sub
Option Explicit
Private 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
Private Sub Command1_Click()
Dim lngP As Long
lngP = ShellExecute(Me.hwnd, "Open", "D:\新建 文本文档.txt", vbNullString, vbNullString, 3)
End Sub