Teach you that Windows XP can fully maintain the system

  
Now Windows XP system can do automatic maintenance just fine. Here is a technique for automatic maintenance through .inf files. The specific content of automatic maintenance can be set arbitrarily, but it requires commands to implement. For example, use Xcopy for file backup, Defrag for disk defragmentation, Del to delete junk files, and so on. In order to clarify the principle, let's take Defrag as an example. You can modify it according to your needs.
Implementation Steps
1. Create Main.bat file
Log in to Windows XP as an administrator, and create a file named Main.bat in the root directory of the system disk (the file name can be taken randomly, under Same) and enter the following:
cd\\
C:
cd Windows\\system32
defrag C: /f
chkntfs C:
2. Create Main.inf file
Create a new file named Main.inf and enter:
[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$” or the file will not work.

Copyright © Windows knowledge All Rights Reserved