I was hoping to be able to use the
tree /F /A > \"desktop\"\\file.txt
command to output only text files. Currently as is, it outputs every
Note: that tree command does not order the output by name!
tree
Instead you can use this approach:
dir /b /s /ad /on c:\ > c:\file.txt
Result looks like less nice but
reference
this solution found on Superuser by pbies