【发布时间】:2011-09-23 01:58:26
【问题描述】:
我正在尝试将文件复制到新位置,同时维护目录结构。
$source = "c:\some\path\to\a\file.txt"
destination = "c:\a\more\different\path\to\the\file.txt"
Copy-Item $source $destination -Force -Recurse
但我得到了DirectoryNotFoundException:
Copy-Item : Could not find a part of the path 'c:\a\more\different\path\to\the\file.txt'
【问题讨论】:
标签: powershell