Updated: April 17, 2012

Applies To: Windows Vista, Windows Server 2008, Windows Server 2012, Windows 8

Creates a symbolic link.

For examples of how to use this command, see Examples.

mklink [[/d] | [/h] | [/j]] <Link> <Target>




Creates a directory symbolic link. By default, mklink creates a file symbolic link.


Creates a hard link instead of a symbolic link.


Creates a Directory Junction.


Specifies the name of the symbolic link that is being created.


Specifies the path (relative or absolute) that the new symbolic link refers to.


Displays help at the command prompt.

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

mklink /d \MyDocs \Users\User1\Documents