Shell "notepad.exe " & sFullFileName,VbNormalFocus

解决方案 »

  1.   

    shell "rundll32.exe shell32.dll,OpenAs_RunDLL c:\a\a.txt""
      

  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 Long    Dim lngResult As Long
        Dim strFileName As String    strFileName = "C:\......\Test.txt"
        lngResult = ShellExecute(0, "open", strFileName, "", "", 1)
      

  3.   

     不用代码直接用dblclick事件即可。
      

  4.   

    foolishtiger(吴文智):你的answer很正确,谢谢。麻烦帮看一下
    http://www.csdn.net/expert/topic/422/422618.shtm
    ok?