Symbolic links in Windows Vista are fully resolved


I believe that friends who have used UNIX will be impressed with symbolic links. Symbolic links make it easy to create shortcuts to other files in the file system, which can be manipulated in many cases. Bring great convenience. However, in Windows systems, it is much more troublesome to implement similar functions. Although Microsoft has introduced support for symbolic links called Junction Point for NTFS volumes since Windows 2000, but in graphics The interface often does not work properly, and many times you have to use plugins to ensure that the feature is available. Moreover, Junction Point has a fatal flaw. NTFS Junction Point can only be used for folders and volumes, not for files, in Windows 2000 or subsequent Windows XP and Server 2003.

In Windows Vista, Microsoft finally allowed NTFS volumes to support symbolic links that point to files. At least from this perspective, Windows Vista provides Unix-like functionality, which is believed to please some Unixes. Fans.
Creating a symbolic link in Windows Vista (symbolic link)

Windows Vista specifically provides a tool for creating symbolic links, MkLink, however, it can only be run from the command line, not graphic interface.

Entering the Command Line

To create a symbolic link using the MkLink tool, you must first go to the command line window and upgrade to Administrator privileges.

Right-click the Command Prompt icon in the Start menu and select Run as Administrator from the pop-up menu.

Parameters of the MkLink Command

Entering the following command at the command prompt will display the corresponding format and parameters of the tool.

MkLink /?

to create a symbolic link to the file

To create a symbolic link to a file, only Follow the appropriate commands, as shown below, let's create a symbolic link to MSPaint.exe called TestSymLink.

MKLINK TestSymLink %SystemRoot%\\system32\\mspaint.exe

After the creation is complete, you can use the Dir command to view it:

Delete symbolic links

to remove the symbolic link is more simple, with a similar operation to delete files, however, be noted that, here is just to remove the symbolic link, not the file itself.

DEL TestSymLink

Copyright © Windows knowledge All Rights Reserved