I believe that friends who have used UNIX will be impressed by symbolic links. Through symbolic links, you can easily create shortcuts pointing to other files in the file system, which in many cases can bring great benefits to operations.
Great convenience. However, in Windows systems, it is much more difficult to implement similar functions.
Starting from 2000, symbolic named Junction Point is introduced to the NTFS Volume.
Link (symbolic link) support. However, it often does not work normally in the graphic interface. Many times, you have to use plug-ins to ensure that this function can be used. In addition, junction
Point also has a fatal defect, whether in Windows 2000 or subsequent Windows XP and Server 2003, NTFS
Junction Point can only be used for folders and volumes, but not for files.
In Windows Vista, Microsoft finally enables NTFS volumes to point to symbolic
Link), at least from this point of view, Windows Vista provides functions similar to Unix, and we believe this can satisfy some UNIX enthusiasts.
Create a symbolic link in Windows Vista)
Windows
Vista provides a tool for creating symbolic links. However, mklink can only be run in the command line, rather than the graphical interface.
Go to the command line
To use the mklink tool to create a symbolic link, you must first enter the command line window and escalate it to administrator privileges.
Right-click the command prompt icon in the Start menu, and select "Run as administrator" from the Dan menu.
Administrator )"
Mklink Command Parameters
Enter the following command at the command prompt to display the corresponding format and parameters of the tool.
Mklink /? , You will get the following help
Mklink [[/d] | [/h] | [/J] Link Target
/D. Create a directory symbolic link. Token considers the file
Symbolic Link.
/H
Create a hard link instead of a symbolic link.
/J creates a directory connection.
Link
Specify a new Symbolic Link name.
Target specifies the path referenced by the new link
(Relative or absolute ).
Create a symbolic link to a file
To create a symbolic link pointing to a file, you only need to follow the corresponding command. As shown in, we create a symbolic chain pointing to mspaint.exe named testsymlink.
.
Mklink testsymlink % SystemRoot %/system32/mspaint.exe
After the creation is complete, you can use the Dir command to view the information:
Delete a symbolic link
Deleting a symbolic link is easier. operations are similar to deleting a file. However, you must note that only the symbolic link is deleted, not the file itself.