ENVI^ Envimode=1
SET$ &NL=0d 0a
ENVI  TPPID=%&__PID%
regi $HKCR\PECMD\VAR\%TPPID%\APP1\v1=0
FILE  --force "%Desktop%\a.bat"
WRIT  "%Desktop%\a.bat",$+0,START CMD.EXE
WRIT  "%Desktop%\a.bat",$+0,START CMD.EXE
WRIT  "%Desktop%\a.bat",$+0,"%MyName%" regi $HKCR\PECMD\VAR\%TPPID%\APP1\v1=1  //运行到这里了
///其他。。。
EXEC  --pid:pids  !"%Desktop%\a.bat"
SET &T=5000
LOOP #1=1,
{   TEAM WAIT 50| CALC &T=%&T% - 50
    regi $HKCR\PECMD\VAR\%TPPID%\APP1\v1,&v
    FIND $%&v%=1, EXIT LOOP
    IFEX $%&T%<=0, EXIT LOOP
}
regi $HKCR\PECMD\VAR\%TPPID%\APP1\v1=
FIND  --pid*@.#%pids%  WID3,
MESS %pids%%&NL%%WID3%
