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
I believe everyone has encountered such a problem, that is, the Internet option can
The calculator is a very useful gadget that comes with Windows. It can help us solv
For users who are highly alert about file confidentiality, leaving the computer for
Temporary things to leave the computer, do not want to shut down, and fear of data leakage, then you
WinXP system local Localhost can not open how to solve?
Easy to move your Excel cell can also automatically adjust the font size
Conditional Theory of WINDOWS Joining Domains
WinXP how to get Microsoft 5 years security update support
Xp coup system file repair method
A quick way to remove malicious web viruses
How to retrieve the system disk space that is forcibly occupied
Word software in "line spacing", how to solve
WinXP system can not switch users' reasons and solutions
How to turn off Windows file protection in WinXP system? How to turn off Windows File Protection
What should I do if the Win10 system CMD command is disabled?
Cleaning up Windows 7 system junk files
Experts explain the maintenance of LCD monitors
How to open and play nsa file?
Colorful GTX750Ti commercially available 1099
Excellent features in the cloned VISTA system in XP (3)
Adjust the size of the C disk and other partitions under Vista
Win7 system installation game toolbox prompt "error launching installer" error
Win10 system Redstone preview version 11082 known how to solve the problem
Win10 system open group policy prompt "MMC can not create a management unit" how to solve?