Creating Linux style symbolic links in Windows Vista

Windows Vista supports symbolic links (soft links). One way of creating these links is using the command line utility called MKLINK.

Run Command Prompt and type the comman MKLINK.

If the system warns saying…“You do not have sufficient privilege to perform this operation”. Run the Command Prompt as Administrator

Usage:

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
                refers to.

Example: To create a directorty link called src what points to c:\users\foo\src

     mklink /D src c:\users\foo\src
Thats it!
Advertisements