How to print a list of files?Windows Do you like to have printed folder structure lists which show the files contained within those folder? Here we show you how to do it. Step 1 Open Power Shell. Step 2 Goto the folder you want to list those files. Example : cd C:\Users\demo\Documents Step 3 List the dir to file with command dir > filename. Example : : dir > list.txt