Dim WshShellSet WshShell = CreateObject("WScript.Shell") WshShell.Run "cmd" WScript.Sleep 1000 * 60 WshShell.Run "taskkill /im cmd.exe /f"把以上文件保存为 .vbs 1000*60是休眠时间 1000是指1000毫秒即1秒