How to use junction.exe

Junction.exe helps you to link one folder from a hard drive or partition to another folder from a different hard drive or partition. In case you don’t have enough space on the hard drive, usually C: drive on the server and you cannot move the data because is used by an application you can create a junction and move the data.

Use junction to list junctions:

Usage: [-s]

-s    Recurse subdirectories

Examples:

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

use ” ” if you have spaces in the path.

http://technet.microsoft.com/en-us/sysinternals/bb896768

Leave a Reply

Your email address will not be published. Required fields are marked *