Tuesday, May 26, 2009

Making Symbolic Links on Windows

Symbolic links can be created in Windows Vista and Windows 7 using the mklink command. The mklink command is not available on earlier versions of Windows.

To make a symbolic link

mklink /d [link] [target]

/d tells the command that the link is to a directory. [link] is the name of the link and [target] is the target directory.

To execute mklink you'd have to run cmd.exe as administrator.

4 comments:

  1. Brilliant! Thanks for posting this

    ReplyDelete
  2. This is becoming more and more like Linux :)

    ReplyDelete
  3. On XP we can use the junction software.. For details see Making Symbolic links on windows xp

    ReplyDelete