windows cmd listed all the files in the current directory

The command uses the dir

Such as, directory and file name listed in the current directory to 1.txt:

dir /b >1.txt

List only certain types of files

dir *.txt  /b >1.txt

 

Guess you like

Origin www.cnblogs.com/arxive/p/11323769.html