【发布时间】:2014-03-21 07:24:18
【问题描述】:
我使用 VBScript 运行一个进程。该过程通常需要 5-10 分钟才能完成,如果我独立运行该过程,那么它会在运行时提供间歇性输出。
我想在使用 VBScript 运行进程时实现相同的逻辑。谁能告诉我该怎么做?
Set Process = objSWbemServices.Get("Win32_Process")
result = Process.Create(command, , , intProcessID)
waitTillProcessFinishes objSWbemServices,intProcessID
REM How to get the output when the process has finished or while it is running
【问题讨论】: