How to print a list of files? By OnBizIn WindowsPosted September 18, 2021 1. Open Power Shell. 2. Goto the folder you want to list those files. Example : cd C:\Users\demo\Documents 3. List the dir to file with command dir > filename. Example : dir > list.txt 4. The directory file list was implement to the text file.