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
0 comments
Hide comments