Windows NTFS has a nice but relatively unknown feature called NTFS junctions. Â It is like hard links in Unix except it is only for directories. Â Microsoft has a KB article about it which points to several utilities. Â However I have been using MarkÂ Russinovich’s junction tool exclusively.
-s Recurse subdirectories
If you want to create or delete a junction, use Junction like this:
To delete a junction specify the -d switch and the junction name.
Here is an example of using junction. Â Note that the order of arguments is opposite of the Unix ln command.
> junction foo d:\docs\foo
The above example will create a junction called “foo” in the current directory. Â This junction will point to d:\docs\foo.
To do the same in Cygwin:
$ junction foo `cygpath -aw /d/docs/foo`
One tip is to use the DOS dir command. Â It will display