Commands for batch installation of XP patches

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.