Updated: April 25, 2007
Creates a symbolic link.
For examples of how to use this command, see Examples.
mklink [[/d] | [/h] | [/j]] <Link> <Target>
/d
Creates a directory symbolic link. By default, mklink creates a file symbolic link.
/h
Creates a hard link instead of a symbolic link.
/j
Creates a Directory Junction.
<Link>
Specifies the name of the symbolic link that is being created.
<Target>
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
At a very minimum, MS should explain this feature and why it's privileged.
I was testing an application which checked it's home running directory (it seems anyway) to know wether it's running; copying it to another directory worked in making the application start another process.
I though it would be clever to make a link to "sub" to "." (which actually works perfectly fine; and the application ran multiple times too), however when browsing in Explorer, for some reason it keeps expanding the infinite loop of symlinks! I even tried isolating the symlink in real directory; it still expanded it on it's own for unknown reasons.
So my guess is since it's so easy for someone to accidently do this, they wanted to protect "normal" users from using this - specially if using older applications unaware of the possibility of infinite loops...