Friday, 7 August 2009

Symbolic Links in NTFS

How to use symbolic links in Vista
Tools for creating hard links in XP
See here as well

Using Junction

Junction tool for creating symbolic links
Use junction to list junctions:
Usage: [-s]
-s Recurse subdirectories
To determine if a file is a junction, specify the file name:

junction c:\test

To list junctions beneath a directory, include the –s switch:

junction -s c:\

To create a junction c:\Program-Files for "c:\Program Files":

C:\>md Program-Files
C:\>junction c:\Program-Files "c:\Program Files"

To delete a junction, use the –d switch:

junction -d c:\Program-Files