List all Files and Folders of a Directory using DOS Command

Listing the Files and Folders using DOS Command is very simple and handy.

Steps are as below:

1. Goto Command prompt.
2. Navigate to the Directory (Where you want to search Files).
3. Write the command as: dir /s /b > c:\ListFilesFolders.txt

Output


4. Please Note: “C:\ListFilesFolders.txt” is the file path with file name.
5. And you will see the result as below:

Output


No Comments

Add a Comment