procw

首页  后退  前进

procw
down2

等待指定进程的完成.

 

procw=Mode, ||Process

 

参数:

Mode

模式.

 0  - 等待其中一个指定进程关闭.

 1  - 等待关闭所有指定的进程.

 2  - 等待其中一个指定进程关闭并完成其它指定的进程.

Process

. 选项是:

 •进程名称(notepad.exe|AkelPad.exe)

 •进程PID(6238|8723)

 •$GLOBALNAME(具有名称或进程PID的全局数组)

备注

暂停执行后续命令,直到条件...

参见:

close, closp, dumpp, freez, openf, openn, opens, openz, prior, resrt, runch, runhp, start, storc

例子

 

global start=notepad||&&procwait sends=GLOBALPROGR<1> start=notepad||&&procwait sends=GLOBALPROGR<1>??2 procw=0||$GLOBALSENDS infbx=InfoBox_TEST1 ;; 运行2个程序记事本,等待其中一个进程完成

 

global start=notepad||&&procwait sends=GLOBALPROGR<1> start=notepad||&&procwait sends=GLOBALPROGR<1>??2 procw=1||$GLOBALSENDS infbx=InfoBox_TEST1 ;; 运行2个程序记事本,等待完成2个进程

 

global start=notepad||&&procwait sends=GLOBALPROGR<1> start=notepad||&&procwait sends=GLOBALPROGR<1>??2 procw=2||$GLOBALSENDS infbx=InfoBox_TEST1 ;; 运行2程序记事本,等待其中一个进程结束并完成其它进程

 

procw=1||notepad.exe|hh.exe infbx=InfoBox_TEST1 ;; 等待进程notepad.exe和hh.exe关闭

up2

tcimage © Аверин Андрей для Total Commander Image Averin-And@yandex.ru