Discussion Locked

Dos command question

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

The TREE command in DOS displays a list of all the files in a directory to the screen. How can I get that list to either a printer or a txt file?

Any other Ideas or programs welcome.

Thanks, Bob

12 replies

by hinrgman

I would click on start
click on run
on the command line type "cmd"
this will open a dos command line box
then type "tree>prn"
if all goes well it will print your tree if not then just type "tree"
your directory tree will be displayed then right click on the menu bar of the dos box
choose edit, then select all, then copy and paste into a text file.
i hope this helps

by thechas

If you want to navigate the file structure from DOS, I recommend Z-Tree.

Z-Tree is the latest incarnation of the venerable old X-Tree DOS file manager.
In addition to allowing you to print either the tree, a list of selected files, or all files in a folder, it allows you to mass change file attributes. (Great for removing the A and R attributes for files copied from a CD-RW)

You can download a trial version.
http://www.ztree.com/

Chas

by data ninja

Free and simple solution: use TreePrint!
TreePrint is a TREE.COM replacement that you access from within Windows Explorer. Simply right-click on a folder or drive and use the TreePrint menu to print the directory tree or save it to a file, startingat that point. Options let you control the number of levels and the amount of indentation for each level, choose whether or not to include filenames, and request that the tree be sorted alphabetically. TreePrint is especially useful for documenting the contents of archive media such as CD-Rs.

http://downloads-zdnet.com.com/3000-2248-5943140.html?tag=lst-0-1

This discussion is closed to new replies.