Click or drag to resize

DirectoryCreateJunction Method (String, String)

[AlphaFS] Creates an NTFS directory junction(similar to CMD command: "MKLINK /J")


The directory must be empty and reside on a local volume.


MSDN: A junction (also called a soft link) differs from a hard link in that the storage objects it references are separate directories,

and a junction can link directories located on different local volumes on the same computer.

Otherwise, junctions operate identically to hard links. Junctions are implemented through reparse points.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
public static void CreateJunction(
	string junctionPath,
	string directoryPath


Type: SystemString
The path of the junction point to create.
Type: SystemString
The path to the directory. If the directory does not exist it will be created.
See Also