Notepad features you don't know

  
In the eyes of ordinary people, the notebook that comes with the system is a simple text recording tool, which can be used as a programming tool in the eyes of the masters. If you leave the simple views of ordinary people and the complicated usage of masters, what else can notepad do for ordinary people? Here we will tell you about the life of some notebooks. 1. No need to set the file extension if you want to create a new text file with a non-TXT extension (such as: Myfile.abc), then simply save the file name as a character like Myfile.abc when saving. String, the system will secretly add the TXT extension in the back, so the establishment is actually a TXT file. Maybe you will say that this is very simple, open the extension to hide in the folder options, change the extension. There is actually a simpler way. Once we have edited the file in Notepad, choose to save the file as a name with a double-width double quotation mark (eg "Myfile.abc"). Tip: For an existing file, you can also use the above method to change the extension. The method is to first open the blank file of the notebook, drag the file to be renamed into the editing window, and then use the file save method as described above to change the extension, and delete the source file after saving the file. This type of file is saved as a different type of method and is also applicable in many applications. Readers can test which applications the trick works with. 2. Quickly edit a specific kind of file If you want to open a file with a non-TXT extension, such as a program source code file, double-clicking directly does not open with Notepad, or simply can't open, even if you choose to set the association, or It’s obviously a bit of a hassle to choose to open step by step from the “File” menu. If you put “Notepad” in the right mouse button to the “ menu, it is much more convenient to send by right clicking. Search and open the Sendto folder under the current system account in the Explorer, create a new shortcut, and type in the location of the object in the text box, type “NOTEPAD.EXE”. In the next window, enter the name of the shortcut key “Notepad”. Note: Different versions of the system have a slightly different location for the Sendto folder, usually in the user documentation settings or user directory (eg C:\\Documents and Settings\\Administrator or C:\\Users\\<user account>) . After setting as above, just right click on any file and select “send to →Notepad”, you can quickly call "Notepad" program to open any kind of file. 3. Change the file date attribute in batches. If we need to modify the date of a file TLINK.LOG. Just create a new TXT file in the same folder, enter "ldquo;COPY TLINK.LOG+,," & rdquo; a line of content (note that there is a half-width space after COPY, followed by a + half-width comma), and then use the file The method mentioned above is saved as LS.BAT. Execute the LS.BAT file to change the file date to the current date. If you need to modify the date of the batch file, just write each file to the same BAT file in this format, and then execute the LS.BAT file. 4. Automatic comparison of file content similarities and differences without the use of special file comparison tool software, nor high version of Word or WPS, can still compare the similarities and differences between two text files. Assume that we need to compare the contents of the two files A.TXT and B.TXT. Simply edit the text file and write a line of characters in it "FC A.TXT B.TXT > BIANHUA.TXT”, save the file as LS.BAT and store it in the same directory as A.TXT and B.TXT. in. After the above work is completed, execute the LS.BAT file to get a file named BIANHUA.TXT. Open this file and you can see the result of the comparison. Tip: In the above tips, borrow an internal command FC from Windows, which is used to compare the similarities and differences between the contents of the two files. The detailed usage is shown in Figure 5. The > in the command indicates that the result of the comparison is output to a file BIANHUA.TXT that follows. This file name can be customized by the user. 5. String audio and video fragment files Suppose we have 3 MP3 audio clips M1.MP3, M2.MP3, M3.MP3; there are 3 MPG video clips V1.MPG, V2.MPG, V3.MPG. We just need to create an empty text file with the full name LS.BAT, and then enter the following two lines of string in it, and save the file in the same folder as the audio and video. COPY /B M1.MP3+M2.MP3+M3.MP3 MALL.MP3COPY /B V1.MPG+V2.MPG+V3.MPG After VALL.MPG is completed, double-click to execute the newly built LS.BAT file. Automatically combine audio and video fragment files into two separate files. After the command is executed, you can see the merged audio file MALL.MP3 and the video file VALL.MPG in the same folder. Tip: The above technique borrows a special format copy method of Windows internal command COPY —— binary copy. The decisive function is the parameter /B in the command. The purpose of adding this parameter is to specify that all the files to be merged are binary files, not ordinary files. The detailed usage is shown in Figure 7. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved