Home  >  Article  >  What are the files with extensions exe, txt, and bat?

What are the files with extensions exe, txt, and bat?

青灯夜游
青灯夜游Original
2022-08-24 15:01:5421272browse

Files with extensions exe, txt, and bat are "executable files", "text files", and "batch files" respectively. An exe executable file is an executable program that can float in the operating system's storage space. txt text files mainly store text information, that is, text information. txt files are universal and cross-platform. A bat batch file, also called a batch script, is an executable file consisting of a series of commands, which can include calls to other programs.

What are the files with extensions exe, txt, and bat?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

The extension of exe is "executable file", the extension of txt is "text file", and the extension of bat is "batch file".

exe executable file

The full name of the exe file is "executable" file, translated as executable file, portable executable (PE ) file format, which can be loaded into memory and executed by the operating system loader. It is an executable program that can be floated in the operating system's storage space. For example, the notepad program notepad.exe can be used to edit documents, such as: test.txt. Double-click to open the notepad.exe notepad program for editing.

exe executable program, an executable program that can float and be positioned in the operating system storage space. Under MS-DOS and MS-WINDOWS, the extension of such files is .exe.

txt text file

txt is a text format provided by Microsoft on the operating system. It is the most common file format. As early as the DOS era, there were many applications, which mainly stored text information, that is, text information. Most of the current operating systems use programs such as Notepad to save it, and most software can view it, such as Notepad, browsers, etc.

.txt is the extension for a text file that contains very little formatting information. .txtThe format is not clearly defined. It usually refers to those formats that can be accepted by the system terminal or a simple text editor. Any program that can read text can read files with a .txt extension, so such files are generally considered universal and cross-platform.

Due to their simple structure, text files are widely used to record information. It avoids some of the problems encountered by other file formats. In addition, when some information in a text file is incorrect, it is often easier to recover from the error and continue processing the rest of the content. One disadvantage of text files is that they tend to have lower entropy, meaning that less storage space can be used to record the information.

bat batch file

The full name of bat is "Batch", which is translated as batch file.

In DOS and Windows (any) systems, a .bat file is an executable file consisting 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 it is just like the command line we execute at the DOS prompt). You can use any text file editing tool such as Edit under DOS or Notepad in Windows. Create and modify batch files.

Batch, also known as batch script. As the name suggests, batch processing is to process an object in batches. It is usually considered a simplified scripting language and is used in DOS and Windows systems.

The extension of the batch file is bat or cmd. The more common batch processing includes two types: DOS batch processing and PS batch processing.

  • PS batch processing is based on the powerful image editing software Photoshop, a script used to batch process images;

  • while DOS batch processing is It is based on DOS commands and is a script used to automatically execute DOS commands in batches to achieve specific operations.

For more complex situations, you need to use if, for, goto and other commands to control the running process of the program, just like high-level languages ​​such as C and Basic. If you need to implement more complex applications, it is necessary to use external programs, including external commands provided by the system itself and tools or software provided by third parties. Although batch programs run in a command line environment, not only command line software can be used, any program that can be run under the current system can be run in a batch file.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What are the files with extensions exe, txt, and bat?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn