How-To Geek: Using Symlinks in Windows Vista

I haven’t tried using my favorite XP junction tool, NTFS-Link, since I upgraded my home computer to Windows Vista, and I’m a little apprehensive since the filesystem has changed a bit. Nonetheless, if you are still using XP, NTFS-Link is an excellent tool for those of you already familiar with symbolic links via other operating systems, such as Linux.

Luckily, Windows Vista does include a command-line tool for creating symbolic links, similar to “ln” in Linux. However, it’s not quite as straightforward. Here’s the scoop from How-To Geek:

Using the mklink Command

The command that you need to use is mklink, which you’ll use from the command line. Just type it on the command line to see the options:

C:Usersgeek>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

(continued via Using Symlinks in Windows Vista)

NTFS junction point – Wikipedia, the free encyclopedia

NTFS junction point – Wikipedia, the free encyclopedia:

An NTFS junction point (JP) is a feature of the NTFS file system version 3.0 or later. It is a type of NTFS reparse point. Junction Points can be used in a similar way to symbolic links — allowing the creation of a link to a folder that is, for most intents and purposes, the same as the folder itself. This has many benefits over a Windows shell shortcut (.lnk) file, such as allowing access  to files within the folder via Windows Explorer, the Command Prompt, etc. Junction points can only link to directories, and moreover, local directories only; junction points to remote shares are unsupported.[1] For linking to files, possible alternatives to junction points (aside from shortcuts) include hard links (which have the restriction that the file must belong to the same logical volume), and symbolic links (which are only included in Windows Vista and newer, but do work over network shares). The Windows 2000 and XP Resource Kits include a program called linkd to create junction points; a more powerful one named Junction was distributed by SysinternalsMark Russinovich.[1]

While I’m still limited to using NTFS Junction Points (versus Symbolic Links, available in Windows Vista), I do really like the idea of having C:\Users\ link to C:\Documents and Settings\ (who the hell came up with that naming convention anyway?) – similar to how C:\Documents and Settings\ is a symbolic link to C:\Users\ in Windows Vista.

Luckily, there is a utility for just that purpose, available here:

http://sourceforge.net/projects/ntfslinkext/

(more info, including earlier code and screenshots here: http://elsdoerfer.name/=ntfslink)