How to Get Text Listing of a Folder’s Contents

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.

Cite This Page

Feldman, Barbara. "How to Get Text Listing of a Folder’s Contents." Surfnetkids. Feldman Publishing. 15 Apr. 2008. Web. 24 May. 2015. < >.

About This Page

By . Originally published April 15, 2008. Last modified April 15, 2008.