Transfer Windows7 system C-Disk User folder

Source: Internet
Author: User
Tags robocopy

A friend here to see the transfer System folder, must have thought of Windows7 optimization master or Rubik's Cube, through they can easily transfer the "favorites", "My Documents" and so on system folders. But what if the C:users folder is to be completely transferred?

The default location for Windows7 user folders is within the users directory under the system disk (usually the C disk). This folder stores all of the user-generated files, such as the files that you keep on the desktop (actually stored in the C:users your username Desktop directory), and the files you keep in My Documents (actually saved in C:, Usersruanmei.comdocuments directory).

As more and more software is installed in Windows, more and more "user-generated files" will be saved in the user folders. When you enter "%appdata%" in the Explorer's address bar, you can see how many software stores the user-generated data there:

The disadvantage of a user folder in Windows7 flagship system disk is that if the system disk is broken, it may be lost together with the user files, and secondly, because (with the use of constantly generated) user files are on the system disk, there is no way to back up the "clean system disk" often.

If you can move a user folder to another hard disk (or another hard disk partition), then system maintenance will be much easier. Usually generated files (most of the files that most people put in the desktop, My Documents) are stored outside the system disk (or partition), so you can reinstall the system (or restore the system backup) without worrying about the loss of the user's files.

Note that the following assumption is that you want to set the user folder to the D disk, assuming that D is an NTFS partition. In the process of installing Win7, ask for input username and password, first, enter any information, press "SHIFT+F10" to call out the DOS window, enter the following command:

Robocopy "C:users" "D:users"/e/copyall/xj

RmDir "C:users"/s/q

Mklink/j "C:users" "D:users"

Then close the DOS window and continue the installation step by step until completed. For this Windows7 installation, the contents of all user special folders (Users Special folder) have been set on the D disk (not the system disk). If you want to move the user folders in the installed Windows7, follow these steps (a bit more cumbersome and you may be unable to copy files in the process):

0. Close all applications;

1. Click the "Windows" key, enter "Computer Management" Press "enter", exhaled "computer Manager";

2. Click on the "Administrator", select Properties, and then in the subsequent dialog box to remove the "account has been disabled" before the tick, and then close the "Computer Manager";

3. Log off the current user (note, not "switch User"), and then log in as "Administrator"

4. Open the Command Line window and enter the following command: Robocopy "c:users" "D:users"/e/copyall/xj/xd "C:usersadministrator"

5. Log off the administrator, re-use your username login Windows7, and then to the "Computer Manager" to disable the administrator;

6. Open a DOS window as an administrator and enter the following command:

RmDir "C:users"/s/qmklink/j "c:users" "D:users"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.