使用 Run方法的第三个参数,等待命令执行完成后才返回。
Set ws = CreateObject("WScript.Shell")ws.Run "A", 0, true '运行A程序ws.Run "taskkill /f /im B.exe", 0, true '关闭B程序ws.Run "taskkill /f /im C.exe",0, true '关闭C程序