DaleG Posted May 26, 2013 Posted May 26, 2013 I'm new to Robocopy, but need to use it in a couple projects. This project is simply copying a remote site's daily activity onto our company serve. My script is: robocopy "E:\Local Data" \\servername\companypath /r:5 pause As I understand it, everything in E\Local Data should be copied to the server in the file (companypath). This runs on a Server 2008 scheduled task to run automatically each evening. Before leaving yesterday I created a new file in E:\Local Data (A Test Folder) with a Text.txt file in the folder. Checking it this morning, A Test Folder did not get copied to \\servername\companypath. I named the command copy.bat. Double clicking on the executable and letting it run still does not copy the new folder/file. As the pause is there, I would also have expected to see the screen each morning with instructions to hit a key to close it. This does not occur either. What am I missing? Thank you in advance for any assistance! Dale
FishCustard Posted May 26, 2013 Posted May 26, 2013 You need to add the /s flag to copy subdirectories, or the /e flag to copy subdirectories including empty ones. 1
DaleG Posted May 26, 2013 Author Posted May 26, 2013 Wow! Thank you for such a quick response, Richard! I have started a full copy, but will change my script to: robocopy "E:\Boston Stuff" \\lousrv01\companydata /s /r:5 and report back. Again, thank you! Dale
FishCustard Posted May 26, 2013 Posted May 26, 2013 No worries - got little to do until my LEA fix their VPN system, so am browsing Edugeek and the WS 2012 documentation!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now