【发布时间】:2020-01-24 17:47:55
【问题描述】:
我有 3,508 个不同名称的文件需要从目录 a 复制到目录 b。
试过了:
Copy-Item "C:\users\username\directory-a\file-1.jpeg,file-2.jpeg" -Destination "C:\users\username\directory-b\"
Powershell 会在文件分离时出错。
【问题讨论】:
-
如果您需要复制文件夹中的所有文件,请尝试使用
robocopy 'source_path' 'destination_path' /mir
标签: windows powershell command