PDA

View Full Version : Printing listed contents of a Folder


Walt
February 27th 04, 03:51 PM
How can I print the listed contents of a folder?

Bruce Sanderson
February 27th 04, 11:36 PM
Open a command prompt, use the tree (or dir) command.

To see the options for the tree command, key

tree /?

Or, use the dir command.

In either case, you can redirect the output to a file then view or print the
file (e.g. open it in Notepad)

tree c:\mylocaldata /f > t.txt

or

dir c:\mylocaldata > t.txt

The tree command is useful for displaying (or printing) a folder hierarchy
and the names of files in each of the sub-folders. Dir merely displays the
names of files and folders in the current or specified folder.

--
Bruce Sanderson MVP

It's perfectly useless to know the right answer to the wrong question.


"Walt" > wrote in message
...
> How can I print the listed contents of a folder?

Google