How to use Mklink to optimize user folder content

Source: Internet
Author: User
Tags new features parent directory

There are more software installed in the system, more applications will have some sense of the system is a bit slow, this situation generally occurs in the user's system partition is small, and now many software are more like to write their own data to this section, while the user's Application Data folder by default (%LOCALAPPDATA%,% appdata%) also becomes larger, mainly because the software unifies management to facilitate user invocation of related configurations, sometimes such folders will become more and more large, so that ordinary users of our difficult to control, not because of the reason for a software to repartition, not because of a few folders become larger and to the system reinstall, This inefficient, time-consuming operation for a new generation of systems has been a bit outdated, once the system may have been accustomed to its reload, that the newly installed performance, the idea has not been universal.

But when you encounter a similar situation, such as if your previous decision thought that the system partition size was appropriate at the time, now the upgrade to the new version of the operating system that the decision is a bit outdated, but the new system is very useful, and do not need to reinstall, Then we can use the Mklink in the system to try to junction the connection, and use the space of other hard disk to meet the special requirements of this kind of huge software.

The following case comes from a third party browser on the author's computer, because the installation path of the browser is not selectable by default, and the author likes to try new features, Automatic Updates and software updates are necessary so I need to move the larger files, but also to facilitate my data dispersion, Play a system performance balance and backup purposes.

L winkey+xàa Open a command prompt with administrator privileges;

L Navigate to the folder to be moved (%localappdata%\google\chrome\) and close the program associated with the application;

L Execute Copy "user data" "E:\user data"

L Execute rd/q/S "User Data"

L Execute mklink/j "user data" "E:\user data"

L re-open the application and it doesn't make any difference, but in fact the file itself has been moved under E:\user data.

If you need to transfer a more specific folder (which is no longer a user folder), such as a Windowsapps folder located on the system disk (%systemdrive%), this can be a folder on the system to none, and requires special permissions to open it. So we need to get ownership through Takeown:

First navigate to the parent directory where the folder is located:%programfiles%

Then execute cmd.exe/c takeown/f "Windowsapps"/r/d y && icacls "Windowsapps"/grant administrators:f/t

This time may be longer, depending on how much your application installed, and finally the 3rd above the routine continue to operate.

Back to the column page: http://www.bianceng.cnhttp://www.bianceng.cn/OS/skills/

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.