Powershell 复制目标的项目问题
我有两个复制项命令Powershell 复制目标的项目问题,powershell,command,Powershell,Command,我有两个复制项命令 复制项目“C:\Test\folder1”“\\remote\u machine\destination”-递归 复制项目“C:\Test\folder2”“\\remote\u machine\destination”-递归 folder1和folder2包含文件夹和文件 这两个命令是相似的,但我得到不同的结果 将文件夹1的内容复制到目标-确定 将folder2及其所有内容复制到目标-\remote\u machine\destination\folder2-失败 更新:我
复制项目“C:\Test\folder1”“\\remote\u machine\destination”-递归
复制项目“C:\Test\folder2”“\\remote\u machine\destination”-递归
更新:我没有收到任何错误。问题是关于第二个文件夹的路径。我希望两个文件夹的内容都在一个目标文件夹中。这是PowerShell的问题- 我的例子的解决方案是
复制项目“C:\Test\folder1”“\\remote\u machine\destination”-递归
复制项目“C:\Test\folder2\*”“\\remote\u machine\destination”-递归
可能是folder2的内容导致了错误。你有什么错误?