Public Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As Any, lpThreadAttributes As Any, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long Function Shell(PathName, [WindowStyle As VbAppWinStyle = vbMinimizedFocus]) As Double
ShellExecute
WinExec
CreateProcess
都可以
Function Shell(PathName, [WindowStyle As VbAppWinStyle = vbMinimizedFocus]) As Double