[Computer Skills] Record of the method of batch extracting file names in folders

The method of extracting file names in batches shared in this article is to use batch processing commands to extract file names in folders in batches.

There are many files under a folder. Do you know how to extract all the file names in the folder in batches?

For example, there is a folder called "Watson Blog" under the F disk in the blogger's computer. You want to extract all the file names under this folder in batches into a notepad file.
 [Computer Skills] Record of the method of batch extracting file names in folders

If you also want to batch extract file names (batch obtain the file names of all files in a folder), you can follow the steps below.

Step 1: create a new notepad file in txt format in the folder to be extracted.

Step 2: Input in Notepad file: DIR *.* ?/B >LIST.TXT

Step 3: change the name of the notepad file from txt to bat. The Rename dialog box will pop up, and click Yes.

Step 4: Double click the file "New Text Document. bat" to generate the list.txt file. Open the txt file to see the list of all file names in the current folder. (Tips: You can also run the file "New Text Document. bat" in another folder to get all the file names under the current folder!)

Summary: The method of extracting the file name in the folder in this article is to save the file to the directory where the file name is to be extracted, save it as *. bat (* is the file name), and then double-click to execute. This is also a batch command in transit.

Organized from: http://www.ittribalwo.com/article/2849.html

 Watson Blog
  • This article is written by Published on January 8, 2018 00:15:57
  • This article is collected and sorted by the website of Mutual Benefit, and the email address for problem feedback is: wosnnet@foxmail.com , please keep the link of this article for reprinting: https://wosn.net/957.html

Comment