 | WaitForInputIdle() | Process component to wait indefinitely for the associated process to enter an idle state." xml:space="preserve" style="color: rgb(42, 42, 42);">使 Process 组件无限期地等待关联进程进入空闲状态。 此重载仅适用于具有用户界面并因此具有消息循环的进程。 |
 | WaitForInputIdle(Int32) | Process component to wait the specified number of milliseconds for the associated process to enter an idle state." xml:space="preserve">使 Process 组件在指定的毫秒数内等待关联进程进入空闲状态。 此重载仅适用于具有用户界面并因此具有消息循环的进程。 |
首先这个程序必要有用户窗口界面或者命令行界面
1、可以试试:Proc.WaitForInputIdle(2000) 等2秒
2、试试
Dim Proc As New Process
Proc.File = "D:\Program Files\National Instruments\LabVIEW 2017\LabVIEW.exe"
Proc.Start
system.threading.thread.sleep(2000) 等2秒
MessageBox.Show("1")