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

前端 未结 12 1740
清歌不尽
清歌不尽 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:04

    I used this method to catalog nearly 100 SDRAM and USB flashdrives and it worked fine.

    From within DOS....

    C:\doskey [enter] {to enable handy keyboard shortcuts}

    C:\tree j:\ >> d:\MyCatalog.txt /a [enter] {j:= is my USB drive ; d:= is where I want catalog ; /a = see other postings on this page}

提交回复
热议问题