How to make Windows XP fully automatic maintenance system

  

The daily maintenance of Windows XP system is a time-consuming and boring thing. If Windows XP can be smarter, it is good to maintain it automatically. 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, 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, create a new file named Main.bat in the root directory of the system disk (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 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$”, otherwise the file will not work.

Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved