How can I print a list of all folders and subfolders of a directory?

I just need it outup into a text file. I am using this on a work computer so I can't install new software unless maybe it's freeware.

Some Guy2008-07-17T13:58:25Z

Favorite Answer

start - run: cmd [enter]

type:

CD\ [enter]
TREE "path to folder" > C:\dirs.txt [enter]

Do include the quotation marks, so that folder paths with spaces are treated correctly.

When it's done, you'll have a text file called dirs.txt in your C:\ root.

Anonymous2016-05-25T14:28:54Z

yes an old trick from win 95 yet still works today.... open the fold and display in list form then hit print screen..... go to wordpad in your start menu -> all prgrams -> accessories and then hit the paste button ( the one with the clipboard on it )..... your screen shot will show up if you have more files you will have to repeat the first 3 steps again but scrolled down in the folder after printing the page.....

C B2008-07-17T13:55:24Z

use the tree command in the command prompt. Look it up to find out how to save the output to a text file as I can't remember how at the moment.