Take the 2-minute tour ×

I'd like to create a soft link on XP and Vista so that

c:\proj01\lib will point to c:\lib


c:\proj02\lib will point to c:\lib

the reason to do so is that some IDE has auto complete to suggest the function name or can quick jump to the function in different files, but all files must be under one folder, such as c:\proj01, so I hope to create a soft link c:\proj01\lib that will point to c:\lib

on XP and Vista, what's the best way to create such links? thanks.

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

mklink doesn't exist on XP, but you can use Sysinternals' Junction tool

share|improve this answer
Good tip, thanks; +1 –  Marc Gravell May 18 '09 at 8:33
If this is the correct answer, the question must be wrong... Junction only creates and shows hard links, not soft links. –  GOTO 0 Aug 21 '12 at 15:35
add comment

From a terminal: mklink /D {linkname} {targetdir}

share|improve this answer
add comment

Your Answer


