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 Sub Command1_Click()
ShellExecute 0, "open", "C:\run.vbs", 0, 0, 0
End Sub
Shell函数只能运行可执行文件和批处理
shellexecute API可以运行系统中有关联的任何格式
shell("C:\run.vbs")
使用Shell()函数来做
shell("C:\run.vbs")
啊.....
shell函数