I\'m trying to use the tree command in a windows commandline to generate a text file listing the contents of a directory but when I pipe the output the unicode characters get st
You can try
tree /A > output.txt
Though it looks different from the CMD line, it still could be acceptable. :P