|reply to koam |
Re: [WIN7] Copy complete directory tree
said by koam:Dave was correct, you need to skip files that are locked. Here is from the help file ;
but it's hanging because it says that the ntuser.dat file is in use by another process.
/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