I'm transferring files to a new file server and was looking at using Robocopy.
The scenario is I'm moving files from server1 to server2.
Server1 has a deploy folder with several other folders within it. I'm looking to copy a certain folder to Server2 rather than the contents of the entire deploy folder.
The path to the folder on Server1 I am looking to copy is \\server1\deploy\microsoft
The path on Server2 where I am looking to copy is \\server2\deploy
The robocopy command:
robocopy \\server1\deploy\microsoft \\server2\deploy /S /E /SEC will copy the file(s) contained within the microsoft folder (on server1) to \\server2\deploy but it will not copy the actual microsoft folder across.
Am I missing a switch in the robocopy command?
Just to summarise
Result: files within the microsoft directory are copied over but not the folder itself.
Any help much appreciated.