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

One thought on “Creating Linux style symbolic links in Windows Vista

  1. Hi Walrus.
    I’ve tried to make a symbolic link from a M$ vista home premium with my user which is an admin account and I get the “You do not have sufficient privilege to perform this operation”. error :-S

    C:\Users\sergio\wamp\www\discovia>mklink /D scorm ..\scorm

    You do not have sufficient privilege to perform this operation.

    Any ideas?
    Thanks for your post

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s