Using dir command to batch output the code of folder name or file name

Time:2020-5-19

Operation method: 1. Create a new notepad and enter it manually by referring to “new folder”;

2. New Notepad, F2 “A1”, Ctrl + C, Ctrl + V; F2 “A7”, Ctrl + C, Ctrl + V; ~ ~ F2 “a5000”, Ctrl + C, Ctrl + V. Copy the file name one by one;

3. Open the command prompt line, enter the “new folder” directory, and enter “dir / b > 1.txt”.

Obviously, it’s easy to use the dir command.

Let’s get to know the dir command.

It can be seen that DOS command line is very easy to use….