Windows XP is actually a every day maintenance time-consuming and boring things, and if Windows XP could be a little smarter, immediately maintain enough. Beneath, I'll introduce a via. Inf file to ensure that Windows XP instantly preserve the abilities, the particular content material of automobile upkeep can be set, however it needs command. Like file backups with Xcopy, Defrag Disk Defragmenter, Del to delete junk files and far more. In order to allow it to be crystal clear rules, the following example we Defrag, you are able to modify according to your wants.
implementation actions
one, to establish Primary.bat file
Log on Windows XP, the system was the basis directory develop a brand new file named Primary.bat (file title can simply check, the identical beneath) and enter the subsequent:
cd
C:
cd Windows system32
defrag C: / f
chkntfs C:
two, to ascertain Primary.inf file
Key.inf develop a file named file and kind:
[version]
Signature =
RunPreSetupCommands = Tst.PreSetup
RunPostSetupCommands = Tst.PostSetup
[Tst.PreSetup]
C: Most important.bat
[Tst.PostSetup]
C: WINDOWS SYSTEM32 TSSHUTDN.EXE 0 / DELAY: 0 / POWERDOWN
on this document, Signature should be set for that
3, to determine Start.bat file
established below the foundation directory within the C batch file Start.bat, for the file, type:
C: WINDOWS System32 rundll32.exe advpack.dll, LaunchINFSectionEx
C: Most important.inf, DefaultInstall,, 32
the role of the command to start a Windows XP hardware set up method, which the Government. inf file directive. Rundll32.exe in Windows, is utilized to name the DLL file (dynamic website link library) capabilities provided in the operate. For example right here is known as a rundll32.exe advpack.dll the LaunchINFSectionEx purpose, this operate would be to commence a. Inf set up procedure. On the other hand Primary.inf content and hardware installation has nothing to perform, but are we altered the system to immediately maintain substitution command.
4, Scheduled Projects
will be the role from the scheduled job regularly Start.bat documents, implementation steps are as follows:
(1) Open the Windows XP Begin Menu into the >
(2) Set the task execution time period is , after which click on
Inside the previously mentioned example, we let the plan perform the job each and every Sunday at 23:thirty a file C: Start.bat, automobile upkeep.
implementation principle
. Inf file is commonly employed for hardware installation, in actual fact, can be a text file. Once the consumer right-click within the file choose
program now we have established the job starts, it calls Begin.bat. Start.bat Principal.inf as configuration file will probably be used to start a setup process, in accordance using the contents of Principal.inf carry out a sequence of operations.
Main.inf will commence with the first implementation of [Tst.PreSetup] part of the statement, which is defragmentation profession. Major.bat richer content, immediately maintaining the operate of the a lot more effective.
Key.bat the command completed executing, [Trs.PostSetup] the statement is executed in flip, that is:
C: WINDOWS SYSTEM32 TSSHUTDN. EXE 0 / DELAY: 0 / POWERDOWN
this statement is off the personal computer,
Office Standard 2010 Key, is in fact
Lastly, note that this approach can only be implemented in Windows XP Professionl, Windows XP Property cannot be utilized.