Open MichaelJLittle opened 7 hours ago
if (Test-Path "D:\projects") { Remove-Item -Recurse -Force "D:\projects" }
new-item -path "D:/" -name "Projects" -itemtype Directory; Copy-Item -Path "\tb-dc02\SHARED\01-michael\projects" -Destination "D:\projects" -Recurse
Remove the existing backup folder if it exists
if (Test-Path "D:\projects") { Remove-Item -Recurse -Force "D:\projects" }
Copy the source folder to the destination
new-item -path "D:/" -name "Projects" -itemtype Directory; Copy-Item -Path "U:\01-michael\projects" -Destination "D:\projects" -Recurse