Everyone will regularly clean up and maintain the computer, I do not know what methods are used by everyone, it is estimated to use the download optimization software to complete it, in fact, no need to do so Just use the features that come with the system. The routine maintenance of Windows XP is a time-consuming and boring thing. If Windows XP is smarter, it's fine to do automatic maintenance. Below, we will introduce a technique for automatic maintenance of Windows XP through .inf file. The specific content of automatic maintenance can be set arbitrarily, but it needs to be implemented by commands. For example, use Xcopy for file backup, Defrag for disk defragmentation, Del to delete junk files, and so on. In order to explain the principle clearly, let's take Defrag as an example. You can modify it according to your needs.
Implementation Steps
1. Create the Main.bat file
Log in to Windows XP as an administrator and create a new name called Main.bat in the root directory of the system disk. The file (the file name can be taken casually, the same below) and enter the following:
cd
C:
cd Windowssystem32
defrag C: /f
chkntfs C:
2. Create Main.inf file
Create a new file named Main.inf and type:
[version]
Signature= "$CHICAGO$"
AdvancedINF= 2.5,"advpack.dll"
[DefaultInstall]
RunPreSetupCommands=Tst. PreSetup
RunPostSetupCommands=Tst.PostSetup
[Tst.PreSetup]
C:Main.bat
[Tst.PostSetup]
C:WINDOWSSYSTEM32TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN
In this file, Signature must be set to ”$CHICAGO$” or the file will not work.
3. Create a Begin.bat file
Create a batch file Begin.bat in the root directory of the C drive, and type in this file:
C:WINDOWSSystem32 undll32. Exe advpack.dll,LaunchINFSectionEx
C:Main.inf,DefaultInstall,,32
Recently, I installed a friend for a friend. After the new computer came home, I helped him install
For Windows XP, because it uses the NT core with high security performance, the system runs fairly s
Second, the repair file is no longer old This is the file version mentioned at the beginning, most
How to make IE allow to install objects with invalid signatures Phenomenon If an object contains inv
Teach you to solve the annoying restart of Windows Update
Wifi security risks become a new gathering place for phishing websites
XP using VMware Workstatio to prompt internal errors how to solve?
Teach you to learn XP system restore function (2)
How to thoroughly optimize the computer's full Raiders skills
Use Group Policy Management WinXP
Not familiar with the latest operating skills of windows xp system _ registry tutorial
Safety Collection: Careful startup item protection system security (2)
How to increase the WinXP recorder time to 300 seconds
A quick move to make registry changes take effect quickly
Win7 automatically open the problem after downloading the compressed file
How to turn off the system icon of the notification bar in Windows 10
How to set Win8 system to boot from U disk
How does Win7 change the printer's cache folder?
Six Tips for Accelerating Disk Defragmentation
The five major computer optimization tools let you choose
Several settings that need to be made to install Win 7 system successfully
Ssh connection slow network error: conection refused
Win10 unlimited restart recovery tutorial