The system can also do maintenance automatically. Simple use of code

  

Many users are complaining that in order to ensure the security of the system, we must do some system maintenance carefully every day. I am afraid that something is wrong, but this is very troublesome. In fact, the system can be maintained by myself, but everyone does not. Know it, teach everyone to play this function of the system today.

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$”, otherwise the file will not work

Okay Everyone should look It, and now knows how to achieve it, it is not very easy, in fact, as long as the use of the code above will be able to achieve, and we go back is best to give it a try Oh, we want to help.

Copyright © Windows knowledge All Rights Reserved