Automatic maintenance of Windows XP separately

xiaoxiao2021-03-06  43

Automatic maintenance of Windows XP separately

Author:

Game.19xz

source:

19xz.com

Windows XP's daily maintenance is a matter of time consuming and boring. If Windows XP is smart, it is fine. Below, you will introduce you to the technique of automatic maintenance of Windows XP by .inf file, the specific content of automatic maintenance can be set, but the command is required to be implemented. For example, file backup with Xcopy, DEFRAG performs disk fragmentation, DEL deletes junk files, etc. In order to explain the principle, let's take DEFRAG as an example, you can modify it according to your needs. Implement step 1. Establish main. The BAT file logs in to Windows XP as an administrator. Under the root of the system disk, the BAT is newly created in the root directory of the system disk (file name can be taken, the same below) and enter the following: CD / C: CD Windows / System32 Defrag C: / f CHKNTFS C: 2. Establish main. inf file Create a new file and enter a file named Main.inf: [version] Signature = "$ CHICAGO $" AdvancedINF = 2.5, "advpack.dll" [DefaultInstall] RunPreSetupCommands = Tst.PreSetup RunPostSetupCommands = Tst.PostSetup [Tst. Presetup] C: /main.bat [TST.POSTSETUP] C: /Windows/system32/tsshutdn.exe 0 / delay: 0 / PowerDown In this file, Signature must be set to "$ Chicago $", otherwise the file will not be able to start effect. 3. Establish Begin. The BAT file creates a batch file begin.bat in the C-plate root directory, enters: c: /windows/system32/rundll32.exe advpack.dll, launchinfaultInstall ,,, this command The role is to let Windows XP start a hardware installation process, thereby executing instructions in the .inf file. Rundll32.exe is used to call the functions provided in the DLL file (dynamic link library) in Windows. For example, Rundll32.exe here calls the LaunchInfsectionEx function in AdvPack.dll. The function of this function is to start a .inf installation process. However, main.inf's content has nothing to do with hardware installation, but is changed by our stolen beam to change the system for automatic maintenance. 4. The planned task program task is to periodically execute the begin.bat file, the implementation steps are as follows: (1) Open the start menu of Windows XP to enter "Programs → Accessories → System Tools → Plan Tasks", double-click "Add Plan Tasks", click " Browse ", find the beginning of the Begin.bat below the C drive, then click the" Next "button; (2) Set the task execution cycle" week ", then click the" Next "button; (3) Setting Perform a password for the planned task, that is, the computer's administrator password, and then click the "Next" button; (4) Set the specific date and time of the execution task. In the above example, we let this planned task execute a file C: /BEGIN.BAT on Sunday 23:30, and perform automatic maintenance.

转载请注明原文地址:https://www.9cbs.com/read-78894.html

New Post(0)