Teach you that Windows XP can fully maintain the system

  
                

Now Windows XP systems 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 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 at random, the same below) and enter the following:

cd\\

C:

cd Windows\\system32

defrag C : /f

chkntfs C:

2. Create the 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] < Br>

C:\\WINDOWS\\SYSTEM32\\TSSHUTDN.EXE 0 /DELAY:0 /POWERDOWN

In this file Signature must be set to & rdquo; $ CHICAGO $ & rdquo ;, otherwise the file will not work.

Previous 12 Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved