Is there a way to get all the file names out of a disk at once? In addition to the batch get file name, of course, Windows itself can be achieved! Here's how to write all the file names of the disks to the text using the cmd command line.
Dir f:/> D:/1.txt//write directories under F disk into D:/1.txt
Dir d:/>> d:/1.txt//Add the directory under D disk to D:/1.txt
dir/s d:/Music > D:/1.txt//All information on the directory and subdirectory files of d:/music is established in D:/1.txt
DIR/S/b d:/Music > D:/1.txt//Set up d:/directory and subdirectory files with simplified information in d:/1.txt
tree/f d:/> D:/1.txt//d:/files and folders are created in the form of a tree in D:/1.txt.
Dir >> 1.txt//Create the current directory and append it to 1.txt in the current directory.
> Create Files
>> Create (if no files are available) or append (if there is already a file) to the file.
If we get a list of the contents of the current directory, generally use the following method:
Copy Code code as follows:
Div/b >dxy.txt
The effect is shown in the following illustration: