Use PowerShell to generate a list of files and directories

前端 未结 5 502
予麋鹿
予麋鹿 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

    The best and clear way for me is:

    PS P:\> Start-Transcript -path C:\structure.txt -Append
    PS P:\> tree c:\test /F
    PS P:\> Stop-Transcript
    

提交回复
热议问题