What would you do if we wanted to copy the names of all the files in a folder? I believe many friends will use to rename a file first, and then copy the filename. But if there is a lot of files, we have to do this one at a time will be quite troublesome, then there is no better way? Next Pepsi Network small series to share with you a one-time automatic generation of all file name list method, convenient one-time copy all filenames, can effectively improve productivity, interested friends may wish to learn this computer tips.
In order to generate a list of all the filenames in a folder, it is also very simple, we only need to make an at batch command to generate a file name list. The procedure is as follows:
First, enter the folder we need to list the file name, in its directory to create a txt text file, for example, I suggested a demo. txt file, such as:
Create a new Notepad file in the folder directory
Second, we open this new Notepad, and then type the following code inside (you can copy the following directly), as shown in:
@echo off dir/b/on >list.txt |
After you type or paste the above code into Notepad, we save it as shown in:
Computer tips: Batch generated file directory in the list of all file names method
Next, we close the Notepad file, and then rename the Notepad file, mainly the "demo. txt" is changed to "demo. Bat", after renaming, we will be prompted to change the extension, we click "Yes", such as:
After the completion, we then click "Demo. Bat" To see the new List.txt Notepad file, we double-click open to see all the file name list, as shown in:
PostScript: Here we're successful. All filenames under the entire folder are displayed in a text list, and it is quite simple to copy all the filenames at once.
All file name list methods in the batch generated file directory