Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Create a symbolic link to a directory or a file using MKLink (Vista) or LinkD (Resource Kit)

How to Create a symbolic link to a directory or a file using 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


How helpful was this article to you?

Related Articles

article How to Move File using MV.exe (Resource Kit)
Move File - Copy a file to another location...

(No rating)  3-9-2008    Views: 154   
article How to Import or Export Active Directory data to a file using CSVDE / LDIFDE commands (Directory Exchange)
Import or Export Active Directory data to a...

(No rating)  3-7-2008    Views: 348   
article How to Find and Replace text within file(s) using MUNGE.exe (NT4 Resource Kit)
Find and Replace text within file(s)...

(No rating)  3-9-2008    Views: 218   

User Comments

Add Comment
No comments have been posted.