【发布时间】:2023-04-01 07:30:01
【问题描述】:
是否有停止特定脚本的代码?我已经看到了一种允许您使用 taskkill 结束 所有 脚本的方法。
Option Explicit
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "taskkill /f /im Cscript.exe", , True
WshShell.Run "taskkill /f /im wscript.exe", , True
我只是想结束一个在 wscript.sleep 中休眠的特定脚本,而不是一次运行的每个脚本。
【问题讨论】: