|
1047# 新版是这样的,大哥。
//自动升级PECMD.EXE
_SUB UPDPECMD
//@LOGS --ON=0
FIND $%bUPDPECMD%=1, EXIT
IFEX $%&bX64%=3, SET &xxx=x64!SET &xxx=x86
SET &NewExe=
FIND $%LOAD_WINPE%=,
{ FORX \H3PE\PECMD%xxx%_UPDATE_V201510.NTR,&&F,1, SET NewExe=%&F% //可见区搜索
FIND $%&NewExe%<>, ENVI $bUPDPECMD=1
}!
{*
FDRV &&PeDrv=%LOAD_WINPE%
IFEX $%&PeDrv%\PECMD%xxx%.EXE, SET NewExe=%&PeDrv%\PECMD%xxx%.EXE
IFEX $%&PeDrv%\PECMD%xxx%.NTR, SET NewExe=%&PeDrv%\PECMD%xxx%.NTR
IFEX $%&PeDrv%\H3PE\PECMD%xxx%.EXE, SET NewExe=%&PeDrv%\H3PE\PECMD%xxx%.EXE
IFEX $%&PeDrv%\H3PE\PECMD%xxx%.NTR, SET NewExe=%&PeDrv%\H3PE\PECMD%xxx%.NTR
IFEX $%&PeDrv%\H3PE\PECMD%xxx%_UPDATE_V201510.NTR, SET NewExe=%&PeDrv%\H3PE\PECMD%xxx%_UPDATE_V201510.NTR
ENVI $bUPDPECMD=1
}
FIND $%&NewExe%=, EXIT
FILE -q -force %SystemRoot%\System32\PECMD2.EXE
IFEX %SystemRoot%\System32\PECMD2.EXE, FILE %SystemRoot%\System32\PECMD2.EXE>>PECMD2-%RANDOM%.EXE
IFEX %SystemRoot%\System32\PECMD2.EXE, FILE %SystemRoot%\System32\PECMD2.EXE>>PECMD2-%RANDOM%.EXE
IFEX %SystemRoot%\System32\PECMD2.EXE, FILE %SystemRoot%\System32\PECMD2.EXE>>PECMD2-%RANDOM%.EXE
FILE %&MyName%>>PECMD2.EXE
exec -nfb =*cmd /c copy /b /y %&NewExe% %SystemRoot%\System32\PECMD.EXE
IFEX %SystemRoot%\System32\PECMD.EXE,! EXIT
@TEAM @WAIT 1| @SET &OldLogs=%&__LOGS%
@LOGS
FIND $%&OldLogs%<>, SET &LogCmd=@LOGS --a %&OldLogs%|! SET &LogCmd=
EXEC -nfb =%SystemRoot%\System32\PECMD.EXE TEAM CALL @| %&LogCmd% @LOAD %CurFile%*%1
EXIT FILE
_END
过期的,不要看了, 不要说了。
重新下载 1047# 的附件吧。
|
|