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. 30 Jan. 2015. <http://www.surfnetkids.com/tech/303/how-to-get-text-listing-of-a-folders-contents/ >.


About This Page

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



i-SAFE Internet Safety Activities: Reproducible Projects for Teachers and Parents, Grades K-8
i-SAFE Internet Safety Activities: Reproducible Projects for Teachers and Parents, Grades K-8
Price: $16.17