為什麼這樣不可以: shell "C:\abc.vbs"
為什麼這樣不可以: shell "C:\abc.vbs "
一定要 shell "C:\abc.exe "嗎?
如何用vb運行 C:\abc.vbs
可不可給我一個code
[解决办法]
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