【问题标题】:get the end or the period of execution of a running process NSIS获取正在运行的进程 NSIS 的结束或执行周期
【发布时间】:2014-05-21 13:13:05
【问题描述】:

如何获得时间知道我的运行过程是否结束? 我将启动 first.exe 来推送一个 second.exe 并为我的 first.exe 返回 second.exe 的时间进程结束

【问题讨论】:

    标签: architecture cmd system exe nsis


    【解决方案1】:

    ExecWait '"c:\path\to\app.exe" /foo "bar baz" --bye' $0 将等待 app.exe 并为您提供退出代码 $0

    【讨论】:

    • 文件 /oname=$PLUGINSDIR\hatier.jpg "image.jpg" newadvsplash::show /NOUNLOAD $12 3000 1000 -1 /BANNER /NOCANCEL $PLUGINSDIR\image.jpg Pop $0 sleep 1000 Delete $ PLUGINSDIR\image.jpg Exec "LauncherDesktop.exe" ExecWait '"LauncherDesktop.exe" /foo "bar baz" --bye' $12 ;ExecWait "MN_DIDIER.exe" Sleep $12
    • 我的 first.exe 我这样写:我在后台启动了一个 app2.exe 我希望启动 app2.exe 后一秒结束启动 app2.exe 因为在第一次启动后需要 30 秒并且5秒第二次发射和溅射那样多25秒,浪费时间。文件/oname = $PLUGINSDIR\image.jpg "image.jpg" newadvsplash :: show/NOUNLOAD $12 3000 1000 -1 /BANNER/$NOCANCEL PLUGINSDIR\image.jpg Pop $0 sleep 1000 删除 $PLUGINSDIR\image.jpg 执行“app2.exe” ExecWait “app2.exe” / foo “bar baz” - 再见 '$ 12 睡眠 $ 12 @Anders
    • 如果您想添加更多代码,请编辑您的问题,我无法阅读您在此处发布的内容...
    猜你喜欢
    • 2020-07-10
    • 1970-01-01
    • 2011-07-14
    • 2015-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-24
    相关资源
    最近更新 更多