How to save file structure to text file?

前端 未结 4 1883
我寻月下人不归
我寻月下人不归 2021-01-15 08:46

I have a folder of media files that are about 1TB big. I want to save the file names and directory structure to a text file for backup and reference. I want to attach a batc

4条回答
  •  爱一瞬间的悲伤
    2021-01-15 09:25

    a pure dir solution

    dir /b /s c:\folder >foldertree.txt
    

    has the advantages over Shay and mjolinor solutions that

    1. it does not require powershell, just a plain cmd command
    2. the result list contains the fully specified filenames which is a better format for postprocessing of any kind.

提交回复
热议问题