Полезное‎ > ‎CMD‎ > ‎

mklink linkd

MKLink (Vista) or LinkD (Resource Kit)

Create a symbolic link to a directory or a file.

Syntax
      MKLINK [[/D] | [/H] | [/J]] Link Target 
 
      LINKD Link [/D] Target 
 
Key:
 
   /H     Create a hard link instead of a symbolic link.
 
   /J     Create a Directory Junction.
 
   Link   The new symbolic link name.
 
   Target The path (relative or absolute) that the new link refers to.
 
   /D     MKLINK /D will create a Directory symbolic link. (default is file)
          LINKD /D  will delete Link, regardless of whether a link exists

To display the target name targeted by a Link run: LINKD Link.
The Target for LinkD may be a destination directory or a Windows 2000 device or any valid Windows 2000 name.

By default, only administrators can create symbolic links.
It is possible (but not advisable) to create links that point to each other in a loop, or a link that targets itself.

Deleting a Symbolic Link does not delete the contents of the target folder! (unlike Hard Junction links)

Symbolic links can span volumes and can use UNC paths.

Examples:

C:\>MKlink ss64 C:\Windows\system32\notepad.exe
C:\>Dir
C:\>Del ss64

C:\>MKlink /D ss64folder C:\Windows
C:\>Dir
C:\>RD ss64folder

"# And so its my assumption, I'm really up the junction" - Squeeze

Related Commands:

NTFS_symbolic_link - Wikipedia
FSUTIL - Create Hard Junction Link
Junction - Create directory symbolic link (sysInternals)

Comments