Saving 'tree /f /a" results to a textfile with unicode support

前端 未结 12 1950
清歌不尽
清歌不尽 2021-02-02 07:10

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

12条回答
  •  天命终不由人
    2021-02-02 08:10

    You can try

    tree /A > output.txt
    

    Though it looks different from the CMD line, it still could be acceptable. :P

提交回复
热议问题