Yes and no!!
If it is a timeout then it won't continue, it's time out! And even if you could continue, what is the point in continuing as you'll have no indication if the copy was successful or not (in terms of what files did / didn't copy)).
However, to override the prompts and do most things:
I used to use the following
xcopy "source" "destination" /i /e /y /z
/z
Copies over a network in restartable mode.
/i
If the destination does not exist, and you are copying more than one file, this switch assumes that the destination is a folder.
/y
Overwrites existing files without prompting you.
/e
Copies any subfolder, even if it is empty.
Now a-days, Robocopy is the better and faster choice and syntax is near identical.
robocopy "C:\sourceDirectory" "C:\backups\destinationDirectory" /e /z
If you save this as a .bat file, you can add the line PAUSE. This is very useful as it will display the last results etc, which if it's an error will display it.
So, paste something like this into notepad:
robocopy "c:\users\desktop\myDirectory" "\\MyServerName\MyBackupDestination" /i /e /y /z
pause
And save it as a .bat file, then run it!
More details of the Robocopy parameters which can be passed, including a retry section but I include the relevant part:
Retry options
/r:<N>
Specifies the number of retries on failed copies. The default value of N is 1,000,000 (one million retries).
/w:<N>
Specifies the wait time between retries, in seconds. The default value of N is 30 (wait time 30 seconds).
/reg
Saves the values specified in the /r and /w options as default settings in the registry.
/tbd
Specifies that the system will wait for share names to be defined (retry error 67).
EDIT
As per Rik's comment, the above is for copying. Both can be used to move (replace XCOPY
with MOVE
and for Robocopy it's more customised.
/S /MOV
or /E /MOV
will move the files/directories but you may end up with empty directories... If you want a 'cut and paste' like action, then use /MOVE
as this will remove the source directories and files when complete.