用SHELL啊语法:shell 命令例:
shell "C:\WINDOWS\NOTEPAD.EXE"  '打开记事本

解决方案 »

  1.   

    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
    Const SW_SHOWNORMAL = 1
    Private Command1_CLick()
        ShellExecute Me.hwnd, vbNullString, "notepad.exe", vbNullString, "", SW_SHOWNORMAL
    End Sub
      

  2.   

    楼上的正确啊
    Private Command1_CLick()
        Shell "NOTEPAD.EXE",1 
    End Sub