Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a printable directory listing?

Documentation

How do I create a printable directory listing?

by  MasterRacker  Posted    (Edited  )
Using the DIR command and redirecting to a text file certainly can work and DIR /s will even do subdirectories however, under NT4.0 and later, the TREE command can produce a much nicer listing.

TREE /f will files as well as folders and TREE /a will draw the 'branches' using standard ACSII characters rather than enhanced line drawing characters. Putting it all together:

TREE c:\stuff /a /f > files.txt will create the file "files.txt" which will contain a nice, heirarchal listing of all the files in C:\stuff and all subfolders.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top