Tag Archives: hierarchy

Create files and folders textual structure tree (Windows)

I have sophisticated folders structure in my computer and cloud. For example, I have huge collection of personal photos or digital archive of documents.

If I want to generate “graphically displays the folder structure of a drive or path”, I use tree command in windows command line (cmd)

Example of output

Also possible to include\list all files inside folders to output.

I find this command very useful. It allows to compare before\after situation and see the differences.

Sometimes I use this at customers. Just to have a visual backup. So if someone moves or deletes some files, we can always track it back.

Tree command also allows output to text file, which is perfect format for backup.

tree “c:\CsvStagingData” > “c:\a\output.txt” /A /F

Folder PATH listing
Volume serial number is 0000005E 462E:DA4E
C:\CSVSTAGINGDATA
|
+—CSVed
| CSVed.exe
| csveditor.chm
| licence.txt
| _pini.dat
|
\—Input