In Windows 7, how does one change the default path of "user folder?

Source: Internet
Author: User
Tags robocopy

The user folder in Windows 7 is located in the \ Users directory under the System Disk (usually drive c) by default. This folder stores all user-generated files, such as files saved on the "desktop" (actually saved in the C: \ Users \ yourusername \ Desktop directory ), another example is the file you saved in my documents (actually saved in the C: \ Users \ Joe \ Documents directory ).

As more and more software is installed in windows, more and more "user generated files" are stored in "User Folders. Enter "% appdata %" in the address bar of the resource manager and press Enter. Then, you can see how many Software saves user generated data there:

The disadvantage of the user folder on the system disk is that if the system disk breaks down, user files may be lost together. Secondly, because (continuously generated with the use of) user files are on the system disk, there is no way to back up "Clean System disks" from time to time ".

If you can move the user folder to another hard disk (or another hard disk partition), system maintenance will be much easier. Files generated at ordinary times (most people put the most files in "desktop" and "My Documents") are stored outside the system disk (or partition; therefore, you can reinstall the system (or Recover System Backup) without worrying about the loss of user files at any time ).

Note: assume that you want to set the user folder to drive D and that drive D is an NTFS partition.

During Windows 7 installation, when you need to enter the user name and password, it is better to enter any information first. Press SHIFT + F10 to call out the DOS window and 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 the installation is complete.

In Windows 7, all contents of the "user special folder" (User special folder) have been set on the d disk (non-system disk.

If you want to move the user folder in Windows 7 that has been installed, follow these steps (a little more complicated, and the file may not be copied during the process ):

0. Close all applications;

1. Press the "Windows" Key, enter "Computer Management", and then press "enter" to call out "Computer Manager ";

2. Click "Administrator", select properties, and then remove the check box before "Account Disabled" in the subsequent dialog box, and then close "Computer Manager ";

3. log out of the current user (Note: it is 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: \ Users \ Administrator"

5. log out of the Administrator, log on to Windows 7 with your username again, and disable administrator in Computer Manager;

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

Rmdir "C: \ Users"/S/Q

Mklink/J "C: \ Users" "D: \ Users"

The user folder in Windows 7 is located in the \ Users directory under the System Disk (usually drive c) by default. This folder stores all user-generated files, such as files saved on the "desktop" (actually saved in the C: \ Users \ yourusername \ Desktop directory ), another example is the file you saved in my documents (actually saved in the C: \ Users \ Joe \ Documents directory ).

As more and more software is installed in windows, more and more "user generated files" are stored in "User Folders. Enter "% appdata %" in the address bar of the resource manager and press Enter. Then, you can see how many Software saves user generated data there:

The disadvantage of the user folder on the system disk is that if the system disk breaks down, user files may be lost together. Secondly, because (continuously generated with the use of) user files are on the system disk, there is no way to back up "Clean System disks" from time to time ".

If you can move the user folder to another hard disk (or another hard disk partition), system maintenance will be much easier. Files generated at ordinary times (most people put the most files in "desktop" and "My Documents") are stored outside the system disk (or partition; therefore, you can reinstall the system (or Recover System Backup) without worrying about the loss of user files at any time ).

Note: assume that you want to set the user folder to drive D and that drive D is an NTFS partition.

During Windows 7 installation, when you need to enter the user name and password, it is better to enter any information first. Press SHIFT + F10 to call out the DOS window and 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 the installation is complete.

In Windows 7, all contents of the "user special folder" (User special folder) have been set on the d disk (non-system disk.

If you want to move the user folder in Windows 7 that has been installed, follow these steps (a little more complicated, and the file may not be copied during the process ):

0. Close all applications;

1. Press the "Windows" Key, enter "Computer Management", and then press "enter" to call out "Computer Manager ";

2. Click "Administrator", select properties, and then remove the check box before "Account Disabled" in the subsequent dialog box, and then close "Computer Manager ";

3. log out of the current user (Note: it is 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: \ Users \ Administrator"

5. log out of the Administrator, log on to Windows 7 with your username again, and disable administrator in Computer Manager;

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

Rmdir "C: \ Users"/S/Q

Mklink/J "C: \ Users" "D: \ Users"


Step 6: An error occurred.
When executing the rmdir command, the system prompts that another program is using this file and the process cannot be accessed.
When executing the mklink command, the system prompts that the file cannot be created if it already exists.

 

Hope you can find a solution.

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.