I’m looking to do some massive copy’s during a server migration and I need to better understand the copy commands in Windows Server. I’ve been toying with xcopy, but I really am having a difficult time understanding it fully. Is there some good literature out there or can anyone help me with this? Is there any other software or commands I could use?
I’m looking to do this to a full array of 37 servers, so I’m looking for guidance on creating a script I can input multiple directories into so that I can leave this running for as long as it takes.
So far this is what I’ve been doing:
xcopy C:\Directory\*.* \\Server\Directory\*.* /S /V
It’s working, but when I get an error it stops… and I’m not really sure the direction I should go for starting up a batch file for this project. Should I use variables? Should I prompt for the directories? What’s the “best” way?
Any help would be appreciated, thanks in advanced!
Now on to actually solving what you’re asking.
I have run into a similar problem at my work as well. I’ve actually developed some code that can take 3 copies at a time (either roboCopy or xCopy) and will create the script for later use.
Try this out and let me know if it works!