runas
command. Syntax Please note: For Windows 2000/XP the appropriate tool for symbolically linking folders is: linkd (linkd.exe) The mklink
command is used to create a symbolic link. It is natively available in Windows Vista/2008+. It has the following command line syntax: mklink [1] | [2] | [3]] linkName 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. *linkName
– Specifies the new symbolic link name. *target
– Specifies the path (relative or absolute) that the new link refers to. :Note: while linkName
path is to be relative to 'Current Directory' path, if target
is relative : it is relative to the linkName
's path and not to the 'Current Directory' path. Just like ordinary files and folders, del
and rmdir
can be used to delete symbolic links to files and directories. To delete a symbolic link to a file or directory, the following command line syntax can be used (in each case, "linkname" specifies the name of the symbolic link to be deleted): *For links to files: del linkName *For links to directories: rmdir linkName Other properties Symbolic links can point to non-existent targets because the operating system does not check to see if the target exists. Limitations Symbolic links do not work at boot, so it's impossible to redirect e.g.: *folder containing hiberfil.sys (if it's configured to be outside root directory) *\Windows *\Windows\System32 *\Windows\Config Nevertheless, it is possible to redirect: *\Users *\Documents and Settings *\Program Files *\Program Files (x86) See also * NTFS junction point * NTFS volume mount point * NTFS reparse point * Symbolic link References