Win7 Platform Mklink command to create symbolic links

Source: Internet
Author: User

Win7 Platform Mklink command to create symbolic links

Friends who know about the Linux platform know the ln command, which makes it easy to create a symbolic link (also known as a soft link) to a directory or file. Symbolic links are similar to shortcuts under the Windows platform, but are much more powerful than shortcuts. It has the advantage of allowing a directory or file to have multiple portals but maintaining a single physical address to facilitate the management of applications and files on our own computers.

Windows Vista and Win7 also introduced a DOS command that makes it easy to create symbolic links, and that is, the Mklink,mklink command uses the following:

C:\>mklink
Creates a symbolic link.

MKLINK [[/d] | [H] | [/j]] Link Target

/d Creates a directory symbolic link. The default is a file symbolic link.
/h creates a hard link instead of a symbolic link.
/j Create a directory join.
LINK Specifies the new symbolic link name.
TARGET Specifies the path (relative or absolute) referenced by the new link.

where the/d and/j are followed by the absolute address, there is no difference between the two parameters.

For example, create a symbolic link on the desktop, link to a folder on the E-disk, the following can be accessed through the mklink /d test E:\abc\work Desktop The fastest access to the symbolic link of the directory and files can be directly deleted, the original directory and the original file has no effect.


This article is from the "Eddy Technology blog" blog, please be sure to keep this source http://gongeddy.blog.51cto.com/2993788/1550362

Win7 Platform Mklink command to create symbolic links

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.