Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要机器人将子目录复制到一个目录的帮助。
C:\test\a\suba > c:\root\suba
C:\test\b\subb > c:\root\subb
C:\test\c\subc > c:\root\subc
您为什么要询问“PowerShell robo copying”——您是在寻找 PowerShell 解决方案还是要使用 robocopy?
如果您正在寻找 PowerShell 解决方案,您可以执行以下操作:
Get-ChildItem C:\test\*\* | ForEach-Object { Copy-Item -Path $_ -Destination c:\root\ -Recurse }