I can never seem to get this right.
I have an existing folder c:\MyApps\Websites\MySite
that already has an existing website running in it. I've downloaded the latest bits which are located under c:\temp\MySite\artifacts
.
when I try to run this
$source "c:\temp\MySite"
$destination "c:\MyApps\Websites\MySite"
copy-item $source $destination -recurse -force
if c:\MyApps\Websites\MySite
already exists then it tries to put it in c:\MyApps\Websites\MySite\artifacts
, but if it doesn't already exist it copies it properly. Not sure what's going on here. Any suggestions?