Skip navigation

JSI Tip 0318 - A picture is worth a thousand words.

Instead of piping a DIR to record a directory structure, try using Tree, which graphically displays the directory structure.

tree \[drive:\]\[path\] \[/f\] \[/a\]

 Parameter   M e a n i n g  
 drive:    The drive: letter. 
 path    The directory. 
 /f   Displays the names of the files in each directory.  
 /a   Use text instead of graphic characters. 

To display the names of all the subdirectories on the disk in your current drive, one screen at a time, type the following command:

tree \ | more

Here is a screen print of the first page of:

tree "c:\program files" | more


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish