I have to copy only folders from one location to another location on file system excluding the files inside the folders.
The below snippet i have tried is copies folders and files Ex:
MoveToPath\A\B\X.xml. Copy-Item $MoveFromPath $MoveToPath -recurse -EA SilentlyContinue
I want only "MoveToPath\A\B"