How do I get a list of files in a directory and subfolders?

Daniel William

New member
How do I get a list of files in a directory and subfolders?
Answer
Create a text file listing of the files
  • Open the command line at the folder of interest.
  • Enter “dir > listmyfolder.txt” (without quotes) to list the files and folders contained in the folder.
  • If you want to list the files in all the subfolders as well as the main folder, enter “dir /s >listmyfolder.txt” (without quotes)
 

Tìm kiếm

Back
Top