Allow Windows XP to fully maintain the system

Source: Internet
Author: User
Tags root directory

The day-to-day maintenance of Windows XP is a time-consuming and tedious thing to do if Windows XP is smart enough to automate maintenance. Here, we introduce a technique for automatic maintenance of Windows XP through an. inf file, and the details of the automatic maintenance can be set arbitrarily, but require a command to implement. For example, use xcopy for file backup, defrag disk defragmentation, del Delete junk files, and so on. To clarify the principle, let's take defrag as an example, you can make changes according to your own needs.

Implementation steps

1. Establishment of Main.bat documents

Log on to Windows XP as an administrator, and in the root directory of the system disk, create a new file named Main.bat (file name can be arbitrarily taken, below) and enter the following:

CD \

C:

CD Windows\System32

Defrag C:/F

Chkntfs C:

2. Establishment of Main.inf documents

Create a new file with a file name of 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.