Popularize junction and mklink to free up your drive C

Source: Internet
Author: User

Windows XP:
Command Junction
Win7:
Command mklink

What are the advantages of the above commands?
Place unnecessary folders of drive C on another disk, and create a link (hypothetical) in the original location without consuming space.
Free up disk C Space

For example, the Temporary Folder is on drive C, and many of your junk files are in the temp folder.
Operation:
1. You can remember its Directory
XP system: % USERPROFILE % \ Local Settings \ Temp
Win7 SYSTEM % USERPROFILE % \ appdata \ Local \ Temp
No, it can be found on my computer -- Advanced -- environmental variables --

2. Delete the temp Temporary Folder (if other folders are cut to the root directory of drive D)
3. Create a temp folder on disk D, that is, D: \ temp.
4. Create a link
XP:
Start -- run cmd --> mklink/D "% USERPROFILE % \ appdata \ Local \ Temp" "D: \ Temp"
Win7:
Start -- run cmd --> junction/D "% USERPROFILE % \ appdata \ Local \ Temp" "D: \ Temp"
-----------------------------------------------------------------------------
Mklink in win7

Junction must be installed in XP
: Http://download.sysinternals.com/Files/Junction.zip (only 78 K)
Download the package and place it in the windows \ system32 directory.

The advantage is that temp files have a large space on drive C of drive D.

Likewise

For example, if you use chrome and Dropbox
You can use it to synchronize your chrome information, including bookmarks, extended search information, record passwords, etc.

Steps:
1. Cut the folder % USERPROFILE % \ appdata \ Local \ google \ chrome \ User Data \ default.
2. copy to the E: \ Dropbox \ Folder
3. Execute the following command
Win7:
CMD --> mklink/D "% USERPROFILE % \ appdata \ Local \ google \ chrome \ User Data \ default" "E: \ Dropbox \ default"
XP:
CMD --> junction/D "% USERPROFILE % \ Local Settings \ Application Data \ google \ chrome \ User Data \ default" "E: \ Dropbox \ default"


The addition, deletion, modification, and query of the two directories will change and keep in mind the operation.
% USERPROFILE % \ Local Settings \ Application Data \ google \ chrome \ User Data \ default
And
"E: \ Dropbox \ default"
Effect at a glance


My Dropbox invitation link needs to go through the wall
250 m for you and M for me

How to cancel it:

First, copy the Temporary Folder of drive D or defalult in Dropbox to another place, then delete the soft link, and then copy the temp folder or default from another place to the corresponding directory, that is, % USERPROFILE % \ Local Settings \ temp. directory (first example) or % USERPROFILE % \ Local Settings \ Application Data \ google \ chrome \ User Data \ directory (Example 2)

Related Article

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.