What does file extension mean
File extension is a mechanism used by the operating system to mark file types; the main function of the file extension is to let the system decide what software should be used to run when the user opens the specified file, so it can be used Used to protect certain files, save disk space, clear icons on the settings panel, and set associations.
The operating environment of this tutorial: Windows 10 system, DELL G3 computer.
What does file extension mean
A mechanism used by the operating system to mark file types
Filename Extension, or Extended file name, suffix name) is a mechanism used by early operating systems (such as VMS/CP/M/DOS, etc.) to mark file formats.
In a file name like "example.txt", example is the main name of the file, and txt is the file extension, indicating that the file is a plain text file, period " ." is the separator between the file main name and the file extension.
The more important role of the file extension is to let the system decide which software to use when the user wants to open the file.
Purpose
Protect important files
For We don't want others to open certain files (such as DOC, etc.) at will. The simplest protection method is to change its extension to another name, such as changing the ".xls" extension to ".cqq", etc. In this way, when you double-click the ".cqq" file, it cannot be opened directly, allowing Others mistakenly thought it was a document of unknown origin and gave up their interest in it. When we run it, we only need to adjust the association status to open it smoothly. For example, you can use Notepad to edit a batch file whose content includes the lines "assoc .xls= Excel.Sheet.8" "ping 127.0.1 –n 10" "assoc .xls=cqq". Then save it as an "open.bat" file. The batch process is simple. The first line uses the "assoc" command to set the correct association for the ".XLS" file. If you want to view the association of files of a specified type, you can execute the "assoc .xxx" command in the CMD window, where "xxx" represents the specific file extension.
The second line uses the Ping command to detect the local IP. The "-n" parameter specifies the number of detections. Generally speaking, one detection takes about 1 second. It takes 10 seconds to detect 10 times here. Of course, you can It depends on the actual situation. Note that "127.0.1" here also represents the local address, which is equivalent to "127.0.0.1". The third line re-associates the ".xls" type to our custom type. First modify the extension of the file that needs to be protected, for example, rename "wendang.xls" to "wendang.cqq". In this way, others cannot open it directly. When we need to use it, we can run the "open.bat" file and double-click the "wendang.cqq" file within the specified time interval to open it smoothly. The batch process will then automatically modify the file association status to prevent others from manipulating the file at will.
Of course, for security reasons, it is best to create a new account in the system (such as "gly", etc.) and set a complex password for it. Store the batch file in the NTFS partition, click the "Add" button in the "Security" panel in its properties window, add the "gly" account, and click the "Delete" button to delete the "Group or User Name" other groups and accounts in the column. If some accounts cannot be deleted, you can click the "Advanced" button, cancel "Inherit from parent those permission items that can be applied to child objects" in the "Permissions" panel in the pop-up window, and click the "Delete" button in the pop-up dialog box , you can clear all accounts. Select the "gly" account and check the "Full Control" item in the permission list, so that only the "gyl" account can operate the batch file.
For general extensions, we can clearly know the file type, but for uncommon extensions or files without extensions, it is not that simple to identify their true identity. Using the small tool FileTypeID, the problem can be easily solved. FileTypeID can identify thousands of file types. Run the program, drag and drop files of unknown types directly into the main interface of the program, and click the "Details" button to display the detailed information of the file, as shown in Figure 1. Click the "Analyze" button, and the file type to which the file may belong is displayed in the "Extension" column in the identification list, the probability of matching the file type is displayed in the "Match" column, and the file type is displayed in the "Type" column. Type description information. Based on this information, it is not difficult to discover its true identity.
In addition, when encountering files of unknown types, you can also use search engines such as Baidu to find the corresponding information. In Windows 8, the processing method is much simpler. After double-clicking a file of unknown type, click "More Options" in the pop-up panel to display all programs in the system that can process the file. After selecting the target program, check the item "Open all XXX files with this application", then you can use the program to open the file. Otherwise, you can click the "Find the application in the App Store" item, which can be easily found in the App Store. Quickly find the application corresponding to the file format, select the corresponding application item, view its description information, and if appropriate, download and install the application.
Generally speaking, no matter what type of file, a specific identifier will be displayed at the beginning of it. For example, for EXE files, the identifier is "MZ". Use tools such as Notepad or WinHex to open the target file, find the identification information at the beginning of it, and then search online to learn the specific file type. In addition, using the software "Translate Extension", you can easily identify the actual file type. Enter the file extension in the upper right corner of its main interface and click the query button to quickly find the relevant description information and learn about its actual type. "Translate Extension" supports 6113 file types. For some special file types, if they cannot be recognized, you can click the "Submit" button to send them to the author for screening.
Save disk space
You can search all .scr files in the system (type *.scr and then search), search results Delete unnecessary .scr files in the window to save disk space. If you want to start the screen saver immediately, right-click on any of the .scr files and drag it to the desktop or the Start menu (or one of its submenus) and select "CreateShortcut". Then click this Shocrtut to start the screen saver.
Clear icons on the control panel
Sometimes these unwanted icons are not carried by the Windows system control panel itself, but by some other programs without permission installed. In this case, it is necessary for the reader to understand that the file extension of most control panel icons is .cpI. Type *.cpI in the Windows system search function to list applications related to the control panel in the system. Then double-click each listed file and filter out unnecessary files. Move these unwanted files to another folder or make a backup, and delete the original icon files. It is worth noting that sometimes multiple icons in the control panel may only represent one .cpl file. For example, if the main·cpl file is deleted, the keyboard, mouse, and printer icons will be deleted.
Setting Association
In Windows Control Panel-Default Programs-Setting Association, you can find almost all file types of this Windows. You can find the name, description and Associated program (current default).
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What does file extension mean. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

On iOS devices, the AppleFiles app allows you to change the file extension of files saved on your iPhone. Changing file extensions is not generally recommended, but this feature may be useful to ensure files are compatible with a specific application, or to intentionally hide files. In this article, we will explain how to change the file extension of files saved on iPhone. How to change file extensions on iPhone Requirements: iPhone running iOS16 or later Open the Files app on your iPhone and navigate to the desired location. Press and hold the file whose file extension you want to change. Click Rename. You can now remove the existing file extension and type a new file extension for this file.

A file extension in Python is a suffix appended to the end of a file name to indicate the format or type of the file. It usually consists of three or four characters, a file name followed by a period, such as ".txt" or ".py". Operating systems and programs use file extensions to determine what type of file it is and how it should be processed. Recognized as a plain text file. File extensions in Python are crucial when reading or writing files because it establishes the file format and the best way to read and write data. For example, the ".csv" file extension is the extension used when reading CSV files, and the csv module is used to process the files. Algorithm for obtaining file extension in Python. Manipulate file name string in Python.

File extension is a mechanism used by the operating system to mark file types; the main function of file extension is to let the system decide what software should be used to run when the user opens the specified file, so it can be used to protect certain files, Save disk space, clear icons on settings panel, and set associations.

The following example prints files in a directory based on their extension - Example importjava.io.IOException;importjava.nio.file.Files;importjava.nio.file.Path;importjava.nio.file.Paths;importjava.util.stream.Stream; publicclassDemo{ publicstaticvoidmain(String[]args)throwsIOException{ 

How to display file extension in win11? The win11 system hides file extensions. I believe many users want to display the file extensions. So how to set this? Let this site carefully introduce to users how to display win11 file extensions. Introduction to how to display file extensions in win11 Method 1: 1. Double-click to enter This Computer on the desktop, and click the View tab in the toolbar at the top of the page. Method 2: 1. Click the search button in the taskbar and enter the Folder Explorer option in the search box to open it.

In the process of web development, it is sometimes necessary to impose format restrictions on uploaded files, that is, only files of specified types can be uploaded to pass verification. At this time, you can use PHP regular expressions to verify the file extension. PHP regular expression is a powerful tool for matching and searching strings. It can help us quickly and accurately determine whether a piece of text meets the requirements according to certain rules and further process it. Next, this article will explain how to use PHP regular expressions for file extension verification. first step:

A file extension is a string of characters used to identify the file type. It usually consists of one or more letters that follow the file name and are separated by a dot. It tells the operating system and applications how to handle it. and interpret the document.

A unique file within a folder can be clearly identified via a "file name". The file name is an identifier of the file's existence, and the operating system controls and manages it based on the file name; in order to facilitate people to distinguish different files in the computer, each file needs to be given a designated name. Files in the same folder have unique file names and cannot be repeated; but file names in different folders can be the same.