NTUSER.DAT

  • Thread starter Scott D. Pearson
  • Start date
S

Scott D. Pearson

OS = Win 2000 Pro on a workstation.
Profile = Local
File System = NTFS

I am writing a .bat routine to run at a Command prompt (aka: DOS Window) to
xcopy the entire folder of C:\Documents and Settings to an external hard
drive as a backup.

However, during the xcopy, the .bat routine returns the following error
message...

C:\Documents and Settings\Administrator\NTUSER.DAT
Sharing Violation

....and the .bat routine terminates.

I realize that the NTUSER.DAT is in use because I am logged in as
Administrator, and thus the Sharing Violation.

I also realize that logging in as a different user would eliminate the
Sharing Violation for C:\Documents and Settings\Administrator\NTUSER.DAT,
but doing so would create a Sharing Violation for the .dat file for the
alternate username under which I would have logged-in.

But how can I get around this? I'd really like to copy that entire folder
tree.

Direct replies may be directed to (e-mail address removed).

Many thanks,
Scott Pearson
San Antonio, TX
 
D

Drew Cooper [MSFT]

You could have a service do the copy for you when no user is logged on.
Schedule a copy with "at", maybe.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top