All file name list methods in the batch generated file directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.