General discussion

Locked

Dos command question

By robertp ·
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

This conversation is currently closed to new comments.

12 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Dos command question

by Gary_W In reply to Dos command question

tree > filename.txt

tree > prn

Collapse -

Dos command question

by robertp In reply to Dos command question

The question was auto-closed by TechRepublic

Collapse -

Dos command question

by hinrgman In reply to Dos command question

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

Collapse -

Dos command question

by robertp In reply to Dos command question

Poster rated this answer

Collapse -

Dos command question

by Shanghai Sam In reply to Dos command question

tree c /a /f >list.txt

Collapse -

Dos command question

by Gigelul In reply to Dos command question

tree c /a /f >list.txt

Collapse -

Dos command question

by robertp In reply to Dos command question

The question was auto-closed by TechRepublic

Collapse -

Dos command question

by TheChas In reply to Dos command question

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

Collapse -

Dos command question

by robertp In reply to Dos command question

The question was auto-closed by TechRepublic

Collapse -

Dos command question

by Data Ninja In reply to Dos command question

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

Back to Windows Forum
12 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums