I dont know how far you have got, if you are looking for something to start you off, this will give you a clue, look at the help for
XCOPY /?
particularly the /D parameter
SET /?
particularly the /P parameter
Show us what you have so far (code, pseudo-code, whatever)
Graham