Method One:
Create a new bat file, put this file and all the patch files in the same directory, double-click to run.
The bat code is as follows
@echo off
For%%i in (*.exe) do%%i/passive/norestart/nobackup
Shutdown-r
Installation parameter Description:
/quiet no user action or display
/passive Unattended mode
/norestart does not restart after installation
/nobackup do not copy the required files for uninstallation
Method Two:
"Start"--"Run"--enter "cmd"--
In the command line mode
Enter the drive letter (e.g. e-drive) of the Patch: E:
Enter the directory where the patch is located (for example, fix): CD hotfix
Command dir/b/o-d e:\fix>fix.txt
The above command line means extracting only the file names of all the files in the "E:\fix" directory and saving them in the Fix.txt
The parameter "/b" means not to display the header information and statistics of the file, parameter/o-d is to require the file name in chronological order (note: The installation of the patch has a sequence, you must first install the old re-installed new), and then open the Fix.txt, the contents of the following form:
Windowsxp-kb927802-x86-chs.exe
Windowsxp-kb928843-x86-chs.exe
Windowsxp-kb927779-x86-chs.exe
Windowsxp-kb926436-x86-chs.exe
Windowsxp-kb924667-x86-chs.exe
Windowsxp-kb918118-x86-chs.exe
Modify it by finding/replacing it as follows:
Start/wait windowsxp-kb927802-x86-chs.exe/u/q/z
Start/wait windowsxp-kb928843-x86-chs.exe/u/q/z
Start/wait windowsxp-kb927779-x86-chs.exe/u/q/z
Note: "Start" is a DOS command that comes with the Windows system, which is used to invoke the application; "/wait" means to enable the application and wait for it to end before executing the next application; the parameter "/u" means the use of unattended mode, the parameter "/q" means no user interaction, The parameter "/z" indicates that the computer does not restart when the installation is complete.
Finally, the Fix.txt is modified to fix.bat so that a fully automated patch-installation batch process is completed.
Commands for batch installation of XP patches