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

Đinh Yến

New member
How do I get a list of files in a directory and subfolders?
Answer
Create a text file listing of the files
  1. Open the command line at the folder of interest.
  2. Enter “dir > listmyfolder.txt” (without quotes) to list the files and folders contained in the folder.
  3. 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