Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use batch processing to automatically patch the system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Editor to share with you how to use batch automatic patching system, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article. Let's learn about it!

Method 1: download the latest system patch with 360Security Guard and save it in the hotfix folder, create a new text file in this folder, and enter the following code:

The code is as follows:

@ echo off

For I in (* .exe) do I / passive / norestart / nobackup

Shutdown-r

Select Save as buding.bat (pay attention to the batch file format, in the Save as dialog box to select the save type to "all files", the file name is fully written as buding.bat, save), put this file and all patch files in the same directory, double-click to run on the OK.

Installation parameters description:

/ quiet has no user action or display

/ passive unattended mode

/ norestart does not restart after installation

/ nobackup does not back up files needed for uninstallation

Method 2: the patch is placed in a drive letter in the mobile hard drive, including all patches from sp2 release to March 11, 2007.A total of 75 patches, the size is about 120m, unfortunately there is no Ftp server, otherwise these patches and batch programs can be uploaded for download and use, do not add a drive letter in the batch program, because the drive letter of the mobile hard disk is different in different computers If the drive letter is involved, you need to modify the batch every time you use it, which is quite troublesome.

Steps:

"start"-"run"-enter "cmd"-

In the command line mode

Enter the drive letter where the patch is located (such as e disk) and enter: e:

Enter the directory where the patch is located (such as fix) and enter: cd hotfix

Command dir / b / omurd e:\ fix > fix.txt

The above command line means that only the file names of all files in the "e:\ fix" directory are extracted and saved in fix.txt

The parameter "/ b" means that the header information and statistical information of the file are not displayed. The parameter / omurd requires the file names to be sorted in chronological order (note: patches are installed in a chronological order, and the old ones must be installed before the new ones are installed. Then open fix.txt. The contents are roughly as follows:

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 find / replace 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 the DOS command that comes with the Windows system, and its function is to call the application; "/ wait" means to enable the application and wait for it to finish, and then execute the next application; parameter "/ U" means to use unattended mode, parameter "/ Q" means no user interaction, and parameter "/ Z" means not to restart the computer when installation is complete.

Finally, change fix.txt to fix.bat, so that a batch program that automatically installs patches is completed.

The above is all the contents of the article "how to use batch processing to automatically patch the system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report