1. [-Path] <String[]> **
  2. [[-Destination] <String>] **
  3. [-Container]
  4. [-Force]
  5. [-Filter <String>]
  6. [-Include <String[]>] **
  7. [-Exclude <String[]>]
  8. [-Recurse] **
  9. [-PassThru]
  10. [-Credential <PSCredential>]
  11. [-WhatIf]
  12. [-Confirm]
  13. [-UseTransaction]
  14. [-FromSession <PSSession>]
  15. [-ToSession <PSSession>]
  16. [<CommonParameters>]

创建文件

image.png

复制.log以外的文件

image.png

重定向

  1. dir |Out-file test2.txt
  2. dir |Set-Content test3.html
  3. dir |Select-Object name,length,LastWriteTime | ConvertTo-Html |Set-Content test3.html