Bat is a batch file under dos. A batch file is an unformatted text file containing one or more commands. Its file extension is. Bats or. cmd。 Type the name of the batch file at the command prompt, or double-click the batch file, and the system will call Cmd.exe to run the commands one by one in the order in which they appear in the file. Right-click-Create-Right-click the text (. Txt file) and change the suffix to. Batbat, and click run directly, or run under cmd.
In DOS and Windows (arbitrary) systems,. Bat file is an executable file, which consists of a series of commands, which can include calls to other programs. Each line of this file is a DOS command (most of the time, just like the command line we execute at the DOS prompt). You can use any text file editing tool (such as Edit in DOS or notepad in Windows) to create and modify batch files.