Site icon Tech Tips » Surfnetkids

How to Get Text Listing of a Folder’s Contents

Switch to Desktop/Mobile View

If you’ve ever wanted to print a text listing of files in a Windows folder, this week’s tip is for you. First, create a simple batch file (you can put it in your Windows folder) called filelisting.bat with a single line in it (without the quotes): “dir /a /b /-p /o:gen >filelisting.txt”. Then modify the Folder context menu so that your batch file displays whenever you right-click on a folder in Explorer. For complete instructions, read The Elder Geek.