请问在vb中用shell调用explore时,explore地参数可以用表达式么?怎么实现?

解决方案 »

  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 LongPrivate Sub Command1_Click()
        ShellExecute Me.hwnd, "open", "http://www.csdn.net", 0, 0, 0
    End SubPrivate Sub Command2_Click()
        Shell "explorer.exe   http://www.csdn.net"
    End Sub
      

  2.   

    可以
    方法是shell("explorer.exe   "   文件路径及文件名)