CmdID

CmdID / Commands

mklink

Creates a directory or file symbolic or hard link. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
mklink [[/d] | [/h] | [/j]] <link> <target>
mklink /d \MyFolder \Users\User1\Documents
mklink /h \MyFile.file \User1\Documents\example.file
rd \MyFolder
del \MyFile.file
/dCreates a directory symbolic link. By default, this command creates a file symbolic link.
/hCreates a hard link instead of a symbolic link.
/jCreates a Directory Junction.
<link>Specifies the name of the symbolic link being created.
<target>Specifies the path (relative or absolute) that the new symbolic link refers to.
/?Displays help at the command prompt.

Windows

from tldr-pages, CC BY 4.0

Create symbolic links.

Create a symbolic link to a file

mklink path\to\link_file path\to\source_fileIdentify

Create a symbolic link to a directory

mklink /d path\to\link_file path\to\source_directoryIdentify
/dCreates a directory symbolic link. Windows commands reference

Create a hard link to a file

mklink /h path\to\link_file path\to\source_fileIdentify
/hCreates a hard link instead of a symbolic link. Windows commands reference

Create a directory junction

mklink /j path\to\link_file path\to\source_fileIdentify
/jCreates a Directory Junction. Windows commands reference