Tree disk:\folder > directorylistingfilename.txt In later versions of Windows click on the search button and type 'cmd'. Open Command Prompt: Open Start menu → Accessories → Command Prompt in Windows 7 and earlier. One of the easiest way how to generate both file and folder listing without 3rd party applications is to use the Command Prompt in Microsoft Windows and a proper command.
How to generate directory listing using Windows Command Prompt