|
0.zip
(974 Bytes, 下载次数: 6)
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
PUSHD "%~DP0"
REG QUERY "HKLM\SYSTEM\ControlSet001\Control" /V SystemStartOptions | FIND /I "MININT" >NUL
IF ERRORLEVEL 1 (
SET DELM=YES
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\MiniNT" /F >NUL
) ELSE (SET DELM=NO)
IF /I %PROCESSOR_IDENTIFIER:~0,3%==X86 (SET B=32&SET A=) ELSE (SET B=64&SET A=WOW6432NODE\)
SET A=REG ADD HKLM\SOFTWARE\%A%ACRONIS\
FOR %%I IN (SNAPMAN%B% FLTSRV%B%) DO (
IF %DELM%==NO (IF EXIST "%SYSTEMROOT%\SYSTEM32\DRIVERS\%%I.SYS" GOTO END) ELSE (
SC QUERY %%I >NUL 2>NUL
IF ERRORLEVEL 1060 (SET %%I_SETUPED=NO) ELSE (SET %%I_SETUPED=YES
SC STOP %%I >NUL
SC DELETE %%I >NUL)
)
COPY %%I.SYS %SYSTEMROOT%\SYSTEM32\DRIVERS /Y >NUL 2>NUL
SC CREATE %%I TYPE= KERNEL START= BOOT BINPATH= "SYSTEM32\DRIVERS\%%I.SYS" >NUL
SC START %%I >NUL
)
FOR %%I IN (ICU38 RPC_CLIENT RESOURCE THREAD_POOL LIBCRYPTO10 LIBSSL10 KB_LINK ULXMLRPCPP EXPAT TIB_API TIB_MOUNTER LOGGING BOOT_ASSIST MSPACK OEM_DOC_SOURCE ICUDT38) DO %A%COMMONCOMPONENTS /F /V "%%I.DLL" /T REG_SZ /D "%~DP0%%I.DLL" >NUL
%A%TRUEIMAGE /F /V "standard" /T REG_SZ /D " 15 7108 4 99103 13 22120 15 96 96 25 7 17 5 96120102 20103108 99 97 31 3120 99 12 96 7 29 31 20 6120 18 12 16 27 97 22 17 27120 19 99 16 0 31 31103 1120 19 27 16 96 6 19 29 22120108 17 99 7 6 98 96 0"
:END
START TRUEIMAGE
CHOICE /T 6 /D Y /N >NUL
IF %DELM%==YES (
REG DELETE "HKLM\SYSTEM\CurrentControlSet\Control\MiniNT" /F >NUL 2>NUL
FOR %%I IN (SNAPMAN%B% FLTSRV%B%) DO (
IF !%%I_SETUPED!==NO (
SC STOP %%I >NUL
SC DELETE %%I >NUL
DEL "%SYSTEMROOT%\SYSTEM32\DRIVERS\%%I.SYS" /F /Q >NUL 2>NUL
)
)
)
关键是要下面这句,没有这句,START TRUEIMAGE后,TRUEIMAGE还没有启动好,批处理就已经删除了HKLM\SYSTEM\CurrentControlSet\Control\MiniNT,加了这句,等6秒后再执行删除。
CHOICE /T 6 /D Y /N >NUL |
|