I have two Copy-Item commands
Copy-Item "C:\Test\folder1" "\\remote_machine\destination" -Recurse
Copy-Item "C:\Test\folder2" "\\remote_machine\destination" -Recurse
folder1 and folder2 contain folders and files
Both commands are similar, but I get different results
- Copy content of folder1 to destination - OK
- Copy folder2 with all content to destination - \remote_machine\destination\folder2 - FAIL
UPDATE: I don't get any error. Problem is about path to second folder. I want content of both folders in one destination folder.