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.
 
Back
Top