|
- ENVI^ ForceLocal=1
- SET$ &NL=0d 0a
- SET &I=1
- SET &P=0
- SET &vMSG=
- SET &PID=0
- _SUB ImagexExemsg
- CALC I=%I%+1
- ENVI @wMsg=%vMSG%
- SED -ex &&pE=?1,[%NL%]Everything is Ok[%NL%],,&vMSG
- IFEX #%pE%>0, SET P=100! TEAM SED -ex &P=1,{.*[%NL%] *}{\d+}{% \d+.*},\2,&vMSG| CALC #P=%P%
- ENVI @wP=%P%
- ENVI @Pbar1=%P%;%P%%%
- ENVI @this=%P%%% //inx:%I%
- _END
- WIN1
- _SUB WIN1,W687H494,新窗口1, KILL *%PID%
- TIME -t:1 T,0,DoIt
- LABE -vcenter wP,L7T6W60H20,xxx,,
- PBAR Pbar1,L70T6W260H20,0
- MEMO wMsg,L07T46W600H400,,,0x40
- _END
- _SUB DoIt
- ENVI @wP=0
- ENVI @Pbar1=0
- //解压
- //EXEC* -pid:&PID -cmd::1000:ImagexExemsg -wait -err+ &vMSG=*"C:\Program Files\7-Zip\7z.exe" -y -bsp1 x P:\PhyOs\WAIGO_Win10(21H2)_8.1_XP_ALL_PE.ISO -oP:\TEMP\T
- //压缩
- FILE -file P:\PhyOs\T1.7z
- EXEC* -pid:&PID -cmd::1000:ImagexExemsg -wait -err+ &vMSG=*"C:\Program Files\7-Zip\7z.exe" -y -bsp1 a P:\PhyOs\T1.7z P:\TEMP\T1\*
- SET PID=0 //Clear
- SED -ex &&pE=?1,[%NL%]Everything is Ok[%NL%],,&vMSG
- IFEX #%pE%>0, TEAM SET P=100| ENVI @wP=%P%;%P%%%| ENVI @this=%P%%% END OK
- _END
复制代码
|
|