dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
19
share rss forum feed


koam
Pink Pecker
Premium
join:2000-08-16
East Puddle
Reviews:
·Shoreham Telephone
reply to dave

Re: [WIN7] Copy complete directory tree

Now I'm trying

robocopy c:\Users y:\Users /mir /sl /xj

but it's hanging because it says that the ntuser.dat file is in use by another process.

Do I have to boot up to DOS or something? (how?)
--
YOU can help reduce poverty, sustainably.
»www.kiva.org/lender/kenandart

dave
Premium,MVM
join:2000-05-04
not in ohio
kudos:8
Reviews:
·Verizon FiOS
You can't open a file for which the current opener has said he wants exclusive access. The end. Your only choice is for the copy program to (a) fail, or (b) skip that file.

/R:a-small-number might help.

ntuser.dat is the current user's registry, so assuming you can figure out how to skip it, it might be worth creating a special user for this backup, so that the normal user gts copied correctly.

(There is no 'DOS' anyway).

SipSizzurp
Fo' Shizzle
Premium
join:2005-12-28
Houston, TX
kudos:4
reply to koam
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


koam
Pink Pecker
Premium
join:2000-08-16
East Puddle
Reviews:
·Shoreham Telephone
reply to dave
Thanks all.

Does anyone know if this is likely to work?

»www.kavoir.com/2012/07/how-to-fr···asy.html
--
YOU can help reduce poverty, sustainably.
»www.kiva.org/lender/kenandart

SipSizzurp
Fo' Shizzle
Premium
join:2005-12-28
Houston, TX
kudos:4
said by koam:

Does anyone know if this is likely to work?

You should have stated your objective in the first post. I needed to move profiles in W7 so I could use Deep Freeze on the C: drive. I did this a couple of years ago, so my memory of the event is not very fresh. Here is the process I was able to condense after reading the 3 tutorials linked below. You might find some new tips in those tuts.

Using Registry Editor
To accomplish this using Registry editor, follow these steps:

· Create the destination folder first

· Click Start, Run and type Regedit.exe

· For per-user special folders, navigate to the following location:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ User Shell Folders

· For per-system special folders, navigate to the following location:

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ User Shell Folders

· Double-click the corresponding shell folder name

· Change the Value data accordingly, mentioning the destination path

· Close Regedit.exe

. In Safe Mode, "Move" the user data folders from the original folder to the new folder using Windows "Drag and Move". When prompted about the .ini files tell it to move them too.


The final "Move" operation is performed in safe mode while logged into a different profile than the one you are moving.

Links ;
http://social.technet.microsoft.com/forums/en-US/itprovistasetup/thread/91aa8b26-2b09-4e56-955c-679b297832e1/

http://www.starkeith.net/coredump/2009/05/18/how-to-move-your-windows-user-profile-to-another-drive/

http://answers.microsoft.com/en-us/windows/forum/windows_7-files/win7-how-do-i-move-user-folder-to-a-different/565f16a5-e5ed-43c9-8422-4f56aebb296e