/ \ | : " * ? "; The file name can be up to 255 characters long."/> / \ | : " * ? "; The file name can be up to 255 characters long.">

Home  >  Article  >  Operation and Maintenance  >  Which can be used as a file name in Windows?

Which can be used as a file name in Windows?

藏色散人
藏色散人Original
2020-03-24 12:01:1710650browse

Which can be used as a file name in Windows?

Which one can be used as a file name in Windows?

A:BB>.C

B:control.ini

C:c*.com

D:pxe?.doc

The file name that can be used in Windows is D, which is "control.ini".

Related introduction:

The DOS operating system stipulates that the file name consists of the file main name and the extension. The file main name consists of 1 to 8 characters, and the extension consists of 1 to 3 characters. It consists of characters, and the main name and extension are separated by a small dot, which is generally called the 8.3 rule. The format is as follows:

□□□□□□□□. □□□

For example: G9401.DBF, where G9401 is the main name and DBF is the extension. The characters that can be used in the file main name and extension are:

(1) English letters: A—z (upper and lower case equivalent)

(2) Numbers: 0—9

(3) Chinese characters

(4) Special symbols: $#&@ ()-[]^~, etc.

(5) Various control characters and the following characters cannot be used in file names:

< > / \ | : " * ?

because these characters have been used for other purposes.

Windows breaks through the restrictions of DOS on file naming rules and allows the use of long file names. The main naming rules are as follows:

(1) The longest file name can be 255 characters.

(2) You can use an extension, which is used to indicate the file type, or you can use a multi-spacer extension. For example, win.ini.txt is a legal file name, but its file type is determined by the last extension.

(3) Spaces are allowed in the file name, but the following characters are not allowed (English input method status): 6d267e5fab17ea8bc578f9e7e5e1570b / \ | : " * ?

(4) The windows system displays different cases of letters in the file name, but it is not case-sensitive when used.

The file name is an identifier of the existence of the file. The operating system determines the case based on the file name. Control and manage it. Different operating systems have slightly different rules for file naming, that is, the format and length of file names vary from system to system. For example: UNIX/LINUX systems distinguish the case of file names, while some systems do not Distinguish between: MS-DOS and WINDOWS.

The file extension is used to distinguish the attributes of the file. In some systems, it is not perceived by the system, such as: UNIX/LINUX system, hello.c There is no difference between a file and a helloc file for the system. It is the same if the extension .c is added or not. The system does not know what file it is. It is just that after the user adds .c, it is convenient for the user to understand that it is a C language source code. file. However, in MS-DOS and WINDOWS systems, file extensions are system-aware. In WINDOWS, different file extensions have their associated programs to open them. These extensions, except for txt, etc., are originally Except for some, the rest are generally registered into the system when installing software. You can see its related information under the HKEY-CLASSES-ROOT root key in the registry. If you change the file extension to an extension that is not recognized by the system, , then you will be prompted to select the opening program when opening it. For example, if you change hello.txt to hello.123, you can see that the icon has also changed and become unknown. But for WORD files in .doc format, because they are MICROSOFT Developed, it maintains good compatibility. When sensing, the system not only checks the extension, but also checks the internal format identifier of the file. Therefore, even if the .doc is changed to other characters, in the system with WORD installed, the system can still Associate it to WORD for opening.

The above is the detailed content of Which can be used as a file name in Windows?. 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