Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Transfer the User folder of win7 C disk to D disk

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Transfer the win7 user folder to disk D

Transfer the user folder to disk D:

When you are asked to enter a user name and password during the installation of Windows7, you might as well enter any information first.

Press "Shift+F10" to exhale 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"

Transfer the user folder to disk D:

When you are asked to enter a user name and password during the installation of Windows7, you might as well enter any information first.

Press "Shift+F10" to exhale 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"

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

Oh, isn't it a little complicated? Well, rookies and veterans can play with it themselves.

Win7 user folder transfer method

(2011-03-26 13:48:00) reprint tag: it win7

User folder

Classification: bits and pieces of information

Win7 user folder transfer method

The default location of Windows7's user folder is the system disk (usually C disk) "\ Users" directory, where all user-generated files are stored. What is common is the file saved on the desktop (actually saved in the

"C:\ Users\ user name\ Desktop\" directory), and the files saved in my documents (actually saved in the "C:\ Users\ user name\ Documents" directory).

The disadvantages of the user folder on the system disk are: 1, if the system disk is broken, the user files may be lost together with the user files; 2, because the user files are on the system disk, the volume of the system disk increases with the use of a large number of files. Backup needs more space, resulting in a waste of space.

If you put the user folder in another partition, then the system maintenance will become much easier. Normally generated files (many people put them in the "desktop" or "my documents") are saved outside the system disk (partition), which becomes smaller and easier to back up; and you can reinstall the system (or restore system backup) at any time without worrying about the loss of user files.

Here are several ways to transfer user folders:

Note that the following assumption is that you want to set the user folder on disk X and assume that disk X is a NTFS partition. 1. When the new system is installed:

In the process of installing Win7, when you are required to enter a user name and password, you might as well enter any information, press "Shift+F10" to call out the DOS window, and enter the following command: robocopy "C:\ Users"X:\ Users" / E / COPYALL / XJ rmdir "C:\ Users" / S / Q

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

Then close the DOS window and continue the installation step by step until it is complete. (note: the space between the parameters of the above command cannot be omitted)

With Windows7 so installed, the contents of all "user special folders" (User Special Folder) have been set on disk X (non-system disk).

Second, the installed win7 system:

If Windows7 has been installed, move the user folder by following the following steps (a little more troublesome, and files may not be copied in the process): 1. Transfer by repair:

Press F8 when you turn on the computer, and a menu with white words on the black background appears. The default cursor is the first item Repair your computer.

(repair computer), press enter directly; 2. Pop up 2 prompt boxes, click Next (next step) or OK (OK); after entering the interface, click the last item: Command Prompt (command window), and enter the following three commands in turn. Press enter after each command. (the following three commands set the "user folder" from "C:\ Users" to "X:\ Users")

?

Robocopy "C:\ Users"X:\ Users" / E / COPYALL / XJ / XD "C:\ Users\ Administrator"

Parameter description: this command is the "robust file copy" command of Windows. / E means to copy files with subdirectories (including empty directories) / COPYALL means to copy all file information

/ XJ means Junction points is not included (default is included)

/ XD "C:\ Users\ Administrator" means that the specified directory is not included, and the specified directory here is: "C:\ Users\ Administrator"

?

Rmdir "C:\ Users" / S / Q

Parameter description: this command deletes the specified directory.

/ S deletes the specified directory and all files in it. Used to delete the directory tree. / Q quiet mode. Delete without asking. ? Mklink / J "C:\ Users"X:\ Users"

Parameter description: this command creates symbolic connections. / J connection type is directory connection, click Restart to restart after the execution is complete. Just OK. A little experience

The experimental results show that the above method can realize the transfer of folders. But it must be entered correctly. If the input error fails to exclude administrator users, some blank icons will appear in the library folder and user folder after transfer, which cannot be opened.

It cannot be deleted or hidden. Re-transfer, correctly enter the command, do not transfer the administrator user folder. As a result, there is no such problem.

Try to rename administrator, default and public folder, add "1" after the original name, and then complete the result of the transfer. It is found that the public folder has been washed out after the renaming.

Since the administrator user folder is not transferred, a temporary folder is generated when you log in with Administrator. You can create a new user, and the user folder for the new user will automatically be in this new location. 2. Use administrator users to operate in the command window

The principle of this method is the same as that of method 1, but because the operation is carried out in the system, it may cause the current user folder cannot be deleted and may cause the operation to fail. -use this method carefully-- 1. Close all applications

Enable Administrator users

Press the "Windows" key, enter "computer Management" and then press "Enter" to call out "computer Manager". Click "Administrator" to select the properties, and then remove the check before "account has been disabled" in the subsequent dialog box, and then close the computer Manager.] 3. Log out of the current user (note, not "switch user"), and open a command-line window with "Administrator" login ("run" cmd), enter the following command:

Robocopy "C:\ Users"X:\ Users" / E / COPYALL / XJ / XD "C:\ Users\ Administrator" 5. Log out of Administrator, log in to Win7 with your user name again, and then disable it in computer Manager

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

Rmdir "C:\ Users" / S / Q

Mklink / J "C:\ Users"X:\ Users"--

(3) other modifications (the following methods have not been verified):

?

Modify the registry-run-regedit:

LocalMechine-Software-Microsoft-WindowsNT-CurrentVersion ① computer registration unit: user name: "actual expected user name"

LocalMechine-Software-Microsoft-WindowsNT-CurrentVersion-Profilelist ② user folder location: change% of each key value to X:

LocalMechine-Software-Microsoft-Windows-CurrentVersion

③ installation directory:%% of CommonFilesDir/ProgramFilesDir/ProgramFilesPath changed to X:?

Create a new account with the actual expected user name, log out of the old account, and log in to the new account

Move the original user's personal folder to the current user's personal folder, delete the old account, including its personal folder, delete the Users connection on the system disk, delete and rebuild the Program Files connection

? About caching, computer Properties-Advanced system Settings-Advanced-Environment variables-system variables

Change the values of Temp and TMP to the same as the user variable, that is,% USERPROFILE%\ AppData\ Local\ Temp

?

As needed, set up Explorer to open and display directly to my computer:

% SystemRoot%\ explorer.exe / e _ 20D04FE0 _ 08002B30309D}: {20D04FE0-3AEA-1069-A2D8-08002B30309D}

Note: the user folder does not support overwriting. If the user name is the same as the folder in the user folder, the personal folder will be suffixed. Computer name-PC.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report