就像光盘自动运行,出来一个界面可以选择看帮助,可以安装程序。

解决方案 »

  1.   

    shell只能直接调用exe文件,要调用其他文件要用到cmd.exe
      

  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
    Private Const SW_SHOW = 5'代码:
    ShellExecute App.hInstance, "open", "c:\test.exe", vbNullString, vbNullString, SW_SHOW