How to make Windows XP fully automatic maintenance 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 Main.bat file
Log in as Windows XP as administrator. In the root directory, create a new file named Main.bat (the file name can be taken randomly, the same below) and enter the following content:
cd\\
C:
cd Windows\\system32
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:\\WINDOWS\\SYSTEM32\\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN
In this file, Signature must be set to ”$CHICAGO$ ”, otherwise the file will not work.

Copyright © Windows knowledge All Rights Reserved