You have to use the redirect symbol (>) :
tree c: /a >treefile.txt
That puts the output of the command to a file instead of the screen. It's a
standard command file (DOS) technique.
Then just double-click that file to open it (the .txt extension means it
opens in Notepad by default)
However, as I said to the original poster, you get a better-looking listing
by NOT using the /a switch, and letting the command default to ANSI output:
tree c: >treefile.txt
then right-click and open with Word.
Once in Word, select the file conversion option MS-DOS. That will format the
lines of the tree correctly.
"pacinitaly" <> wrote in message
news:...
>
> I'm dense,
>
>
> I tried to type:
> tree c: /a
> and it just goes by.
> How do I export to a word file?
>
> check the attached app. not what you want but it's cool
>
> ps thanks Dave for the reg file.
>
>
> +-------------------------------------------------------------------+
> |Filename: JDirPrinter.exe |
> |Download: http://www.vistax64.com/attachment.p...hmentid=11987|
> +-------------------------------------------------------------------+
>
> --
> pacinitaly
>
> ASCII stupid question, Get A Stupid ANSI