During the use of computers, we will encounter many problems. Annoying ad windows will pop up constantly; we will switch over multiple sets of network configurations; and we will often forget the key data in the backup network; the encrypted folder cannot be opened due to misoperations. Have you ever thought that all these problems can be solved through a small file? You can even use it to solve almost all problems encountered when using computers. It is a powerful BAT file.
I. Check for missing information-adds fire to system functions
Although our operating system is powerful, it still lacks some applications, such as: There is no Timed Shutdown software. The use of BAT files can solve many such problems.
1. Shutdown and restart
Let's first create a bat for shutting down the computer at a specified time every day. The specific method is as follows:
Open the notepad in the attachment and write it in it. At shutdown-S-F, select "File> Save", select "all files" for the SAVE type, and name it: shutdown. bat, 1. If you want to shut down every day at, drag the file to "Start>Program→ Start ", so that the file will be executed every time it is started. The specific meaning is that at every day, shutdown-S-F shut down and shut down all the unresponsive programs.
If you need to restart the machine frequently, you can write a BAT file for fast shutdown, open a notepad, and write:
@ Echo off
// Close the command line display
% SystemRoot % \ system32 \ shutdown-r-t 0
// The-R parameter indicates that the computer is restarted. The-t parameter indicates that the computer is followed by the waiting seconds. If the value is 0, the computer is restarted immediately.
2. Disk sorting
The disk fragment program that comes with Windows XP cannot be used for full sorting. We can compile a full sorting bat and enter the following in the notepad:
Defrag C:/f/V
Defrag D:/f/V
// Write a few lines for Several partitions.-F indicates that the disk is forcibly organized even if the available disk space is insufficient. -V indicates that the sorting result is displayed.
Save the file as a bat file and double-click it. If you do not want to keep it for a long time, you can enter shutdown-S-f at the end of the file so that it can be shut down.