Batch processing automatic system patch (bulk install EXE) _dos/bat

Source: Internet
Author: User

Install the operating system after the longest time is to download patches installed patches, often download patches installed patches have spent most of the day things, the following describes a rapid installation of the system patch two ways.:

Method 1: Download the latest system patches with 360 security guards and save them in the hotfix folder, create a new text file under the folder, and enter the following code:

Copy Code code as follows:

@echo off
For%%i in (*.exe) do%%i/passive/norestart/nobackup
Shutdown-r

Select Save As Buding.bat (note batch file format, in the Save As dialog box to save the type selected as "All Files", the file name is written in complete Buding.bat, save), the file and all patch files in the same directory, double-click the run on OK.

Installation parameter Description:

/quiet no user action or display
/passive Unattended mode
/norestart does not reboot after installation
/nobackup not to uninstall the required files


Method 2: The patch is placed in a mobile hard disk character, including the SP2 release to 2007.3.11 days all patches, a total of 75, the size of: 120M, unfortunately no FTP server, Otherwise, you can upload these patches and batch processing program for everyone to download and use, the batch program must not add a letter, because the disk of the hard drive in different computers are different, if it involves the letter, each use need to modify batch processing, it is more trouble.

Steps:
"Start"--"Run"--enter "cmd"--
At the command line
Enter the letter of the patch (for example, e-disk) by entering: 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 that only the file name of all files in the "E:\fix" directory is extracted and stored in Fix.txt
The argument "/b" means that the header information and statistics for the file are not displayed. Parameter/o-d is required to sort the file name in chronological order (note: The installation of the patch has a sequential order, you must first install the old installation of the new), and then open the Fix.txt, the contents of the inside probably 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 to:
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

Description: "Start" is a Windows system with its own DOS command, which is used to invoke the application, "/wait" means to enable the application and wait for it to end, and then execute the next application; parameter "//" indicates the use of unattended mode, parameter "/q" means no user interaction, The parameter "/z" indicates that the computer is not restarted when the installation completes.
Finally, the Fix.txt modified to Fix.bat, such a fully automatic installation of the patch program is completed

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.