Foxtable(狐表)用户栏目专家坐堂 → [求助]调用了外部EXE,如何让这个EXE完全运行完毕了,在执行下一个动作


  共有2361人关注过本帖树形打印复制链接

主题:[求助]调用了外部EXE,如何让这个EXE完全运行完毕了,在执行下一个动作

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106665 积分:542508 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/3/6 22:40:00 [显示全部帖子]

System_CAPS_pubmethodWaitForInputIdle()

Process component to wait indefinitely for the associated process to enter an idle state." xml:space="preserve" style="color: rgb(42, 42, 42);">使 Process 组件无限期地等待关联进程进入空闲状态。 此重载仅适用于具有用户界面并因此具有消息循环的进程

System_CAPS_pubmethodWaitForInputIdle(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")

 回到顶部