Spiga

How to create symbolic link in windows 7

To create symbolic link in windows 7,then easiest way is to use command mklink.

C:\Windows\system32>mklink
Creates a symbolic link.

MKLINK [[/D] | [/H] | [/J]] Link Target

/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.

Normally,we can use the option /D to create symbolic link.
Note:You need the admin privileges to run this command
runcmdasadmin

Example:

To create a symbolic link named MyDocs from the root directory to the \Users\User1\Documents directory, type:

mklink /D \MyDocs \Users\User1\Documents

Also we can use junction.exe or linkd.exe to create symbolic link in windows 7,you can try them after put them to C:\windows\system32 if you have the interest.

0 nhận xét:

Your IP

IP
Blogger Widgets

Copy code, paste your site:

<p><span style="text-align:center; display: block;"><a href="http://win7-vista.blogspot.com/2011/02/get-ip-address-widget-for-your-blogger.html"><img src="http://www.wieistmeineip.de/ip-address/?size=468x60" border="0" width="468" height="60" alt="IP" /></a><br /><small><a href="http://win7-vista.blogspot.com/2011/02/get-ip-address-widget-for-your-blogger.html">Blogger Widgets</a></small></span></p>