views:

470

answers:

2

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

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

and

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.

+4  A: 

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

Gordon
+7  A: 

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

Thomas Levesque
Good tip, thanks; +1
Marc Gravell