When you use the dir command to view files on a disk, you will find that there are many kinds of file suffixes (i.e. file extensions), most of which have some meaning.
Any file with a suffix of exe, COM, or bat can be executed directly. These exe-suffix files are called executable files, files with COM suffixes are called command files, and bat-suffix files are called batch files. If we want to execute these files, simply type the file base name at the prompt and then enter, without the need for a file suffix.
For example, the first line of this file is called Format.com, followed by the prefix named COM, if we want to execute it, simply type the file base name at the prompt and then enter it, do not need to enter the suffix name. (This is actually after we want to learn formatting command format, do not try to press the text input on the screen, or you will not have the information on a disk, and so after learning the following chapters, you understand this command and then try again, now do not mess with!!! )
For example, the second line of the file Mem.exe, followed by the prefix is an EXE, but also a executable file, its function is to see the computer's current memory footprint. Tap the mem at the prompt, and then enter. (This command is OK, you can try)
This shows how much memory the computer has in total, how much is being used, how much is left, how much basic memory is being used, and how much basic memory is left, which will be explained in detail below.
When we look at the file in the root of C disk, we tend to see the Autoexec.bat file, followed by bat, indicating that it is a batch file and can be executed directly.
The so-called batch processing, is to be able to execute a lot of commands, when we want the computer to complete a series of tasks, can be a single command of the execution, you can put these commands into a file, as long as a knock on the file name, the computer will be a batch of orders executed at once.
In practice, we often create batch files to accomplish a lot of tedious work with fixed steps. Now that you know which files in your computer are directly valid for you, they are files that are suffixes of COM, exe, or bat.
So, when you get a new software, you can start with the dir command to see if there are any files that have them as suffixes, in general, you can find one or a few such files, you can safely to implement them, which must have one is right, wrong also does not matter, generally will not have much impact.