2015-04-02 26 views

回答

0

您必须指定要复制哪些文件。例如,如果你想选择的所有内容从G:\Folder1执行可以Get-ChildItem "$files",将它们存储在一个变量,然后用它作为参数

$files = Get-ChildItem "G:\Folder1" 
Copy-Item $files "h:\yourFolder" 
+0

谢谢你的回复。我第一次使用Powershell。我已经输入这行C:\> $ files = get-childitem“C:\ Powershell_Source”copy-item $ files c:\ Powershell_Destination。我得到这个错误msg-> S C:\> $ files = get-childitem“C:\ Powershell_Source”copy-item $ files c:\ Powershell_Destination – 2015-04-03 09:14:46

相关问题