Printing listed contents of a Folder

  • Thread starter Thread starter Walt
  • Start date Start date
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.
 

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

Back
Top