In Microsoft Windows, there are many ways to get a list of all files in a folder, including all the files within all the subfolders. However, here is one effective way of doing that.

You have to open the cmd prompt in Windows by typing Start / Run/cmd or Search cmd.

After you get the cmd prompt you have to point it to the directory that you want to list. For example, if the directory X is in C:\downloads that you have to type in cmd prompt cd C:\downloads (cd refers to change directory.)

List all Files Recursively

C:\>dir /s

To save results to a file:

C:\>dir /s /b>filelist.txt

View them a page at a time:

C:\>dir /s | more

NOTE: If you would like to PROMOTE link in this article, please let me know.

If you liked this article, please like/subscribe to YouTube ChannelDM Spot FB page, Twitter, or LinkedIn and be notified when a new article is published.


Hello Everyone :)

Thank you for visiting Sci & Tech Portal. It contains articles about Information technologies, Lifestyle...

You will surely find something to read in between the lines too, namely, my love and effort invested into making my communication with you original, useful, and attractive, as well as a promise of continuous improvement.

If you've found the site helpful or useful then please consider throwing a coffee my way to help support my work