|
|
发表于 2009-3-11 09:43:47
|
显示全部楼层
回复 5楼 的帖子
这样呢?- @echo off
- setlocal
- set ATHTOFIXES=.
- rem Copyright:
- rem Zhaolei, 2007-4-16 (Please do not modify it, May God Bless You.)
- rem Manual:
- rem Put all windows updates and qchain and this batch into same directory, as following, and run this batch.
- rem WindowsXP-KB890046-x86-CHS.exe
- rem WindowsXP-KB899589-x86-CHS.exe
- rem WindowsXP-KB911567-x86-CHS.exe
- rem WindowsXP-KB918899-x86-CHS.exe
- rem WindowsXP-KB920214-x86-CHS.exe
- rem WindowsXP-KB921398-x86-CHS.exe
- rem WindowsXP-KB921883-x86-CHS.exe
- rem WindowsXP-KB922616-x86-CHS.exe
- rem WindowsXP-KB922760-x86-CHS.exe
- rem WindowsXP-KB925454-x86-CHS.exe
- rem WindowsXP-KB925486-x86-CHS.exe
- rem qchain.exe
- rem SETUP_HOTFIX.BAT
- rem For developer:
- rem Do not use "start" command, because it will cause several hotfix installed at same time,
- rem and only one hotfix successed(other hotfix will error and exit)
- rem We use /passive mode instead of /quiet mode to make user see install progress.
- rem We use /nobackup to save disk space.(Uninstall impossible)
- for /F %%F in ('DIR %ATHTOFIXES%\WindowsXP-KB??????-x86-CHS.exe /A-D /B /ON /W') do (
- echo Installing %%F
- %%F /passive /norestart /nobackup
- :::::::::::::::::::::::::::::::::::::
- ::Modified by Batcher 2009-03-11
- if %errorlevel% neq 0 (
- %%F /passive /norestart
- if errorlevel 1 (
- echo 补丁%%F需要重启才能生效
- ) else (
- echo Successed
- )
- )
- ::if ERRORLEVEL 1 (
- :: echo Failed
- ::) else (
- :: echo Successed
- ::)
- :::::::::::::::::::::::::::::::::::::
- )
- echo Executing qchain
- %ATHTOFIXES%\qchain.exe
- if ERRORLEVEL 1 (
- echo Failed
- ) else (
- echo Successed
- )
- echo Hotfix install complished
- pause
复制代码 |
|