Robocopy - Switch Please Help

April 24, 2012 at 08:11:54
Specs: Windows 2008 R2
Hi All,

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

Source: \\server1\deploy\microsoft
Destination: \\server2\deploy

Result: files within the microsoft directory are copied over but not the folder itself.

Any help much appreciated.


See More: Robocopy - Switch Please Help

Report •


#1
April 25, 2012 at 01:51:52
Source: \\server1\deploy\microsoft
Destination: \\server2\deploy\microsoft

Here are the syntax and examples here

http://ss64.com/nt/robocopy.html

Never used robocopy, so I'm not too much help here. Ever looked at taracopy. Got a GUI and everything, error handling, and hashes.


Report •
Related Solutions


Ask Question