用ShellExecute时 如何指定用ie打开 *.htm,而不是用netscape或TE

解决方案 »

  1.   

    shell "iexplorer.exe"+" "+"*.htm"
      

  2.   

    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 Const SW_SHOWNORMAL = 1Private Sub Command1_Click()
        ShellExecute Me.hwnd, vbNullString, "www.csdn.net", vbNullString, vbNullString, SW_SHOWNORMAL
    End Sub
      

  3.   

    Shell "explorer.exe http:\\www.csdn.net"
      

  4.   

    我想用ShellExecute而不是shell
    ShellExecute中也不是用"open"或"explorer.exe",因为那样只是调用默认的程序,不一定是IE
    我想一定用IE来调用,该怎么写代码