but I have never had much success with XXCOPY. It always seems to fail somewhere.
My preferred route now, is to use the hard drive manufacturers utilities to clone the drive. They almost all have free downloadable software available for their drives to carry out this function and generally, it works without any drama.
Ultimately, I prefer a clean install, as it gets rid of all the gathered dross, but I know this is not always feasible.