I got the following problem. I have a folder C:\Users\Username. In that folder you can find folders like "Documents", "Favorites" etc.
What im trying to do is including only some of the folder to copy.
I was playing arround with Robocopy XD
to exclude some folder but that is not acceptable cuz i cant know all the folder that may be there.
Then i tried Get-ChildItem -include <some dir>
. Now i want to copy only the listed folders. But robocopy copies only the content of the folder and not the folder itself. Are there any other solutions for this problem.