Symbolic link (aka Symlinks)

From Wikipedia :

In computing, a symbolic link is a term for any file that contains a reference to another file or directory in the form of an absolute or relative path and that affects path-name resolution.

How to Create Symbolic Links in Windows :

we can use MKLINK command in windows to create links to folder or files, for folder I use the syntax :
> mklink /J Link Target

Sample :

> mklink /j myFolder D:\fayed\myOriginalFolder
Junction created for myFolder  <<===>> D:\fayed\myOriginalFolder


The full command option is :


λ mklink
Creates a symbolic link.

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.

No comments:

Post a Comment