How to create NTFS links from command line

To create a NTFS link, you need to type the following commands into a ‘Command Prompt‘ window with administrative rights.

Hardlink (files only):

mklink /h <link_name> <file name>

Junction (folder only):

mklink /j <link_name> <folder name>

Symbolic link (file):

mklink <link_name> <file name>

Symbolic link (folder):

mklink /d <link_name> <folder name>

For more details about NTFS links, you can see the following links:

Hardlinks & Junction
Symbolic Links

You can also choose to install ‘Hardlink Shell Extension’ that adds an explorer context menu with all the needed options.

http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html