17
3
This is a stupid question, but I just don't know why it isn't working.
I am trying to copy the files from FolderA to FolderB recursively. I am doing this:
Copy-Item -Path "C:\FolderA\" -Destination "C:\FolderB\" -recurse -Force -Verbose
It works great, no problem.
Except the result in FolderB is this:
C:\FolderB\FolderA\file.txt
Whereas I want it to be:
C:\FolderB\file.txt
What stupid obvious thing am I missing?
3You are doing nothing stupid, copy-item is just a PITA. – StingyJack – 2018-01-08T01:24:01.697