相关疑难解决方法(0)

Powershell 2 copy-item如果不存在则创建一个文件夹

$from = "\\something\1 XLS\2010_04_22\*"
$to =  "c:\out\1 XLS\2010_04_22\"
copy-item $from $to -Recurse 
Run Code Online (Sandbox Code Playgroud)

如果c:\ out\1 XLS\2010_04_22 \确实存在,则此方法有效.如果不存在,是否可以使用单个命令创建"c:\ out\1 XLS\2010_04_22 \".

powershell copy powershell-2.0

60
推荐指数
3
解决办法
11万
查看次数

标签 统计

copy ×1

powershell ×1

powershell-2.0 ×1