改用 api 看看
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 LongPrivate Sub Command1_Click()
    ShellExecute Me.hwnd, "open", "C:\aa.txt", "", App.Path, 1
End Sub

解决方案 »

  1.   

    Private Sub cmdElink_Click()
        On Error Resume Next
        Shell "start mailto:" & txtEmail
        
    End Sub
    Private Sub cmdElink_Click()
        On Error Resume Next
        Shell "start mailto:" & txtEmail
        
    End Sub
      

  2.   

    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 LongPrivate Sub Command4_Click()
        ShellExecute Me.hwnd, "open", "mailto:[email protected]?subject=主题在这里&body=" & "内容在这里", "", App.Path, 1
    End Sub
      

  3.   

    Private Sub Command1_Click()
        Shell "start.exe mailto:[email protected]?subject=主题在这里&body=" & "内容在这里", vbHide
    End Sub
      

  4.   

    编译有错误(低下是内容)
    compile error:
    Argument not optional用的语句是
    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 LongPrivate Sub Command4_Click()
        ShellExecute Me.hwnd, "open", "mailto:[email protected]?subject=主题在这里&body=" & "内容在这里", "", App.Path, 1
    End Sub
      

  5.   

    错误是停留在
    ShellExecute地方我的语句是这样的:
    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 LongPrivate Sub Command4_Click()
        ShellExecute Me.hwnd, "open", "mailto:" & txtMail
    End Sub