said by koam:
but it's hanging because it says that the ntuser.dat file is in use by another process.
Dave was correct, you need to skip files that are locked. Here is from the help file ;/R:n :: number of Retries on failed copies: default 1 mill
/W:n :: Wait time between retries: default is 30 seconds.
This is some of what my batch files typically have to include sub directories. This will also re-try locked files after one second and only once before moving on./S /W:1 /R:1