-2

enter image description here

Here, NTUSER.DAT is different between the 2 different files. As if they're not overriden as they're supposed to.

The statement I use is this

robocopy "D:\Users\TeguhProg" "C:\Users\TeguhProg" /e /xo /w:1 /r:1

This should override files that are different right?

Update: It seems that robocopy doesn't overwrite NEWER files. What about if I want robocopy to overwrite ALL files except those with the same size and exact same date?

3
  • 4
    You cannot overwrite NTUSER.DAT anyway, it's HKEY_CURRENT_USER in the registry and as such always in use.
    – Daniel B
    Commented Apr 27 at 7:26
  • 1
    "What about if I want robocopy to overwrite ALL files except those with the same size and exact same date?" - That's the default behaviour
    – DavidPostill
    Commented Apr 27 at 7:58
  • What do the logs of the transfer process say? Do they tell you there is a problem with the source file, or with the destination? Commented Apr 29 at 15:02

1 Answer 1

0

Robocopy may not be copying ntuser.dat because the file is in active use and locked, not because it is newer than the destination.

If you are trying to backup the user profile, you may wish to use the /B argument, which instructs Robocopy to use its Backup mode and allows it to copy files it normally doesn't have access to.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .