$from = "\\something\1 XLS\2010_04_22\*"
$to = "c:\out\1 XLS\2010_04_22\"
copy-item $from $to -Recurse
This works if c:\out\1 XLS\2010_04_22\
does exist . Is it possible with a single command to create c:\out\1 XLS\2010_04_22\
if it doesn't exist?
Yes, add the -Force
parameter.
copy-item $from $to -Recurse -Force