Windows Operating System provides the mklink command to creates a symbolic link.

The symbolink means the shortcut of the directory or a file.

Syntax Syntax

MKLINK [[/D] | [/H] | [/J]] Link Target
     /D      Creates a directory symbolic link.  Default is a file             symbolic link.     /H      Creates a hard link instead of a symbolic link.     /J      Creates a Directory Junction.     Link    Specifies the new symbolic link name.     Target  Specifies the path (relative or absolute) that the new link             refers to.

Top ↑

Example Example

In my E drive I have a hello directory.

I want to create a shortcut into the D directory.

So, I’m using below command to create a shortcut for the directory.

mklink /J "D:\hello" "E:\hello"

NOTE: Here, I have used /J because of I’m creating the shortlink for the directory.

%d bloggers like this: