Jun 18, 2013

Guide to Symbolic Links (symlinks) on Windows


Symbolic links are known as advanced shortcuts. You can create symbolic links to individual files or folders, and then these will appear like they are stored in the folder with the symbolic link even though the symbolic link only points to their real location.

Syntax:
mklink /prefix link_path file/folder_path

Mklink can create several types of links, including the following:

/D – creates a soft symbolic link, which is similar to a standard folder or file shortcut in Windows.  This is the default option, and mklink will use it if you do not enter a prefix.
/H – creates a hard link to a file
/J – creates a hard link to a directory or folder

No comments:

Post a Comment