Printing a directory tree

N

Nickjr

I've tried to print a directory tree, with file names
from the command prompt by going to the root directory
and using the " dir > prn " command. All that happens
is that I get the tree shown on the screen. What is the
secret??????????????????????????????
 
B

Bruce Chambers

Greetings --

From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "tree > filetree.txt" or "tree > lpt1,"
just as you used to do in DOS. Any of the switches for the TREE
command (type "tree /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


Bruce Chambers

--
Help us help you:




You can have peace. Or you can have freedom. Don't ever count on
having both at once. -- RAH
 
R

Rick \Nutcase\ Rogers

Hi,

Open a command prompt (start/run cmd), go to the folder of choice.

Run "dir> file.txt". This will create a text file of the contents of the
folder that you can open in notepad for printing or saving.

If you wish to add the contents of the subdirectories, run "dir
<drive><folder> /s> file.txt".

You may find this useful:

HOW TO: Add "Print Directory" Feature for Folders in Windows XP [Q321379]
http://support.microsoft.com/?kbid=321379

If you head to google.com and search on "free directory printer", you will
also find many other useful tools.

--
Best of Luck,

Rick Rogers aka "Nutcase" MS-MVP - Win9x
Windows isn't rocket science! That's my other hobby!

Associate Expert - WinXP - Expert Zone
 
W

wojo

Bruce gave you the how-to and as for the prn not working it is because your
printer isn't hooked into prn (Maybe USB printer?)
Another nice option is here:
http://www.karenware.com/powertools/ptdirprn.asp
Karen's Directory Printer.

--
If I can help you I will.
If you can help me thanks.
(e-mail address removed)
TO Email: Remove "SPAM" without the quotes

Useful Links
AdAware:
www.lavasoftusa.com/software/adaware/
Spybot S & D:
www.safer-networking.org/
Check for Parasites/Worms:
www.gemal.dk/browserspy/parasites.html
Blaster Security Patch:
http://www.microsoft.com/security/incident/blast.asp
TweakUI and other PowerToys:
www.microsoft.com/windowsxp/pro/downloads/powertoys.asp
 
A

Alex Nichol

Nickjr said:
I've tried to print a directory tree, with file names
from the command prompt by going to the root directory
and using the " dir > prn " command. All that happens
is that I get the tree shown on the screen.

XP does not have a real DOS - just an emulation - and redirection to PRN
is likely not to work. You might redirect to LPT1: is you have a
printer on parallel port, if though you have a USB one, cut the corner
and use
DIR > C:\list.txt
or other file name, then print that in Windows using Notepad


You will need the /S switch to DIR to get a full listing with
subfolders, and probably /B to abbreviate the information listed. The
TREE /F command sounds more what you want
 
D

Darrell

Download Karen's Directory Printer. DirPrn.exe With Directory Printer,
click on the C: drive, click a dot before "Both" (files & directories),
click a check in the box before "include subdirectories".

I just did it and it and got bored and stopped it with over 11,000 files and
565 directories.
 
W

wojo

lol
Two days later your going to suggest what I suggested then? :)

--
kwoyach[SPAM]@yahoo[SPAM].com
TO Email: Remove [SPAM]

**Useful Links**
AdAware:
www.lavasoftusa.com/software/adaware/
Spybot S & D:
www.safer-networking.org/
Check for Parasites/Worms:
www.gemal.dk/browserspy/parasites.html
Blaster Security Patch:
http://www.microsoft.com/security/incident/blast.asp
TweakUI and other PowerToys:
www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

If I can help you I will.
If you can help me thanks.

Darrell said:
Download Karen's Directory Printer. DirPrn.exe With Directory Printer,
click on the C: drive, click a dot before "Both" (files & directories),
click a check in the box before "include subdirectories".

I just did it and it and got bored and stopped it with over 11,000 files
and
565 directories.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top