|
|
||
| Purpose: | Create NTFS symbolic, hard, and soft links. |
| Format: | MKLINK [/A /D /H /J /Q /X] Link Target |
| Link | The new symbolic link name |
| Target | The pathname (full or relative) that the new link refers to |
| /A | Create a link with an absolute path. |
| /D | Create a directory symbolic link. (The default is to create a file symbolic link.) |
| /H | Create a hard link (like MKLNK). |
| /J | Create a junction. |
| /Q | Don't display results. |
| /X | Delete directory link. |
Usage:
Due to Windows file system restrictions, creating symbolic links with MKLINK requires an NTFS volume and Windows Vista or later.
The file/directory names in Link and Target can be fully or partially qualified. MKLINK will also copy an existing description to the link.
MKLINK sets two internal variables:
| %_mklink_files | The number of links created |
| %_mklink_errors | The number of errors |
See also MKLNK.
Option:
| /= | Display the MKLINK command dialog to help you set the filename and command line options. You cannot specify any other arguments on the command line. (Not available in TCC/LE.) |
| /A | Create a link with an absolute (full expanded) pathname. For CMD compatibility, MKLINK creates relative links if you don't specify a full pathname. |