Use PowerShell to generate a list of files and directories

前端 未结 5 503
予麋鹿
予麋鹿 2021-02-01 15:37

I\'m writing a PowerShell script to make several directories and copy a bunch of files together to \"compile\" some technical documentation. I\'d like to generate a manifest of

5条回答
  •  死守一世寂寞
    2021-02-01 16:26

    You can use command Get-ChildItem -Path | tree >> myfile.txt this will output tree-like structure of a directory and write it to "myfile.txt"

提交回复
热议问题