Modify the location of the system documents and Settings directories

Source: Internet
Author: User

By default, the system will use the user account to the configuration file in the C: root directory, for security and convenient backup, and other reasons to consider, you can change the directory under other partitions, the following two scenarios to explain how to change:

First, the system has not been installed:
A: Modify the installation parameters of Winnt.sif during installation change the program files and documents and Settings folders to D-disk. Please modify the Winnt.sif at installation (light-start installation) by adding the following fields:

[Unattended]
Programfilesdir= "c:/my Program Files"
Change the default location for program installation here, and change the drive letter and folder name as needed.

Comm
Change the location of the folder where the application's common files are saved. Change the drive letter and folder name as needed.

[GuiUnattended]
Profilesdir= "C:/Documents and settings/"
Change the default location of the Documents and Settings folder here.

Second, the system has been installed:

1. Right button on my Computer-Properties-user profile, select the profile you use, such as: Mycomputer/myname, point Copy to, in the path d:/myname, click OK, the system will put you in documents and Copy all the files under your account in settings to the D:/myname directory under
2. I am on my computer right-admin-system Tools-Local Users and Groups-users, double-click your account MYNAME, select Configuration file, in the profile path to the "D:/myname", in the following local path also enter "D:/myname"
This way, Although your master profile is still c:/documents and settings/myname, you can copy the files in C:/Documents and settings/myname to d:/myname every time you log out, It should be said that the function of the backup.
Multi-user, in the D disk to build a superior directory, the following, respectively, to create a directory for each user
3. Find the Hkey_local_machine/software/microsoft/windows nt/currentversion/profilelist in the registry, there are several sub-keys, corresponding to the account configuration on your machine, find the key named " ProfileImagePath ", the key value is" C:/Documents and Settings/myname "This one," C:/Documents and Settings/myname "to" D:/myname "can be.
Log off once again, you can delete the "C:/Documents and Settings/myname" directory, your configuration file has been transferred to D:/myname
 

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.