Creating Symbolic Links in Windows

Until recently I assumed that creating Symbolic links in Windows was an impossibility.

That was however before I stumbled across an interesting VerySimple Dev Blog announcement describing the creation process.

To create a symbolic link in Windows Vista, at the command prompt, enter the following command:

mklink /d symlink_filename target_filename

(If you are linking an entire directory you must include the /d switch, otherwise this should be omitted.)

Use Windows Explorer to navigate to the directory in which you have just created the symlink, the file should be visible as if this were it’s permanent location. If you wish to remove or rename the link simply perform this action on the file or folder from this location.

One thing to remember is that you must create any link as administrator. If you do not run the command as Administrator, you may receive the following error:

You do not have sufficient privilege to perform this operation

To run the command prompt as administrator, right click the command prompt icon and click “Run as administrator”.

You may be further prompted with security messages asking for your permission before performing this action, depending on your current setting of the Windows User Account Control (UAC).

One Reply to “Creating Symbolic Links in Windows”

  1. Hey mate, if you’re intertested in using “symlinks” inside of Windows (or juntion points as they’re lovingly called in the M$ world), then I’d advise you have a look at NTFSLink at http://elsdoerfer.name/=ntfslink.

    Very useful tool and it also works in XP (it can create symlinks and NTFS versions of Hard links as well).

    … see i can still be useful after all this time! 😉
    (not sure how i managed to stumble on your blog though… just having a journey down memory lane on the Fubra site).

    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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: