In the process of using the computer we will encounter a lot of problems, annoying ad Windows Non-stop pop-up, non-stop in multiple sets of network configuration switch; often forget the key data in the backup network; The encrypted folder cannot be opened due to misoperation. Have you ever thought that all these problems can be solved by a small file? You can even use it to solve almost every problem that you encounter when using a computer. It is a powerful bat file.
One, check leakage fill--to the system function add fire
Although our operating system is powerful, but there is still a lack of application in some aspects, such as: no timing shutdown software. BAT files can solve many of these problems.
1. Shutdown and reboot
Let's start with a bat that lets the computer shut down at specified times of the day, as follows:
Open the Notepad in the attachment, write it inside, at 22:00 shutdown-s-F, select file → save, save type Select all files, and then name it: Shutdown.bat, as shown in Figure 1. If you want to shut down at 10 o'clock in the evening every day, drag the file to start → program → boot, so that every time the file will be executed, the specific meaning is, at 22:00 every day 10 o'clock, Shutdown-s-f shutdown and shut down all the unresponsive programs.
If you need to reboot the machine frequently, write a bat file for a quick shutdown, or open a notepad to write:
@echo off
Close command line display
%systemroot%\system32\shutdown-r-T 0
The-r parameter indicates the restart computer,-T indicates that the time followed by the wait seconds, and 0 means restart immediately.
2. Disk Finishing
Windows XP's own Disk Defragmenter cannot be sorted out completely, we can write a whole bat, in Notepad, enter:
Defrag C:/f/v
Defrag D:/f/v
There are several partitions on which to write a few lines, where-F indicates that disk collation is mandatory even if there is not enough free disk space. -V indicates that the collation results are displayed.
Save this as a bat file, and then double-click it. If you think that the time is too long to organize, do not want to stay on the sidelines, you can enter the end of the file: Shutdown-s-F, so that the shutdown can be done.
Current 1/3 page
123 Next read the full text