Discussion Locked

printing directory tree

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a way to print out a directory tree through windows? We have windows 2000 and would like to print out a directory tree containing probably thousands of directories. It would take forever to do this through dos. Does anyone know of any easy to use programs or a method to do this? Thanks!

12 replies

by nettek

Open a command prompt and go to the root of the drive. Type in
c:\tree /a > c:\folders.txt
This will place your directory structure in a text file that can be easily printed out.

by thechas

I don't know if using the command promt will work correctly if you have folders with long file names.

There are numerous freeware utilities out there that will do the job.

Just search your favorite freeware/shareware download site.

by joseph moore

DIR /AD /ON >>filename.txt

That will do a directory listing of folders only, sorted alphabetically. It will spit the output to a text file.

If you need a whole directory structure including subfolders, then add a /S switch.

by joseph moore

And add the /N switch, just to make sure you get the full name, not the 8.3 naming. So, here is the full thing I would do:

DIR /AD /ON /N /S >>filename.txt

by dklippert

If you have less than 65,536 folders, look at:

http://www.klippert.com/Excel

(There are no spaces in the URL)

Choose ?Number and size of Files in folders? in the Topic box.
It?s a macro that will list the names of all the files on the chosen drive and the size in Kb.
You can customize it. Right now it highlights folders larger than 10 Mb in Red.

You can copy the code and paste it into the VB Editor in Excel.

This discussion is closed to new replies.