Use of the Win7 command Mklink

Source: Internet
Author: User

C disk space is getting smaller, in the Win7 also marked red, in the mind to see uncomfortable, have to think of some ways to free up some space. See the appdata,chrome accounted for more than 1G of space.

When installing Chrome browser because you cannot specify the installation directory, so the Chrome browser cache file is also default in the system disk, its cache file is very large, it is necessary to deal with. You can use the Mklink command to link the cache location to the location you want under Win7.

Enter Mklink/? In the cmd command line to get the following help:

View Source print?
1 MKLINK [[/D] | [/H] | [/J]] Link Target
2         /D      创建目录符号链接。默认为文件
3                 符号链接。
4         /H      创建硬链接,而不是符号链接。
5         /J      创建目录联接。
6         Link    指定新的符号链接名称。
7         Target  指定新链接引用的路径
8                 (相对或绝对)。

The default cache file for Chrome browser is located at: C:\Users\ Login user name \appdata\local\google\chrome\user data\default\cache tiantai Yi Zhuang Metallurgy

Now it's time to create a symbolic link to D:\Chrome\Cache

First C:\Users\ login user name \appdata\local\google\chrome\user data\default\cache this Cache directory deleted. Then enter the command in CMD:

View Source print?
1 mklink /D "C:\Users\gonnsai0\AppData\Local\Google\Chrome\User Data\Default\Cache""D:\Chrome\Cache"

Show success:

View Source print?
1 C:\Users\nowamagic>mklink /D "C:\Users\nowamagic\AppData\Local\Google\Chrome\User
2 Data\Default\Cache" "D:\Chrome\Cache"
3 为 C:\Users\nowamagic\AppData\Local\Google\Chrome\User Data\Default\Cache <<===>>
4 D:\Chrome\Cache 创建的符号链接

Now you can see that the cache has successfully established the symbolic link, click on the cache, and actually went to the D:\Chrome\Cache.

Use of the Win7 command Mklink

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.