Click or drag to resize

DirectoryCreateSymbolicLink Method (String, String)

[AlphaFS] Creates a symbolic link to a directory (similar to CMD command: "MKLINK /D").

 

Remarks

Symbolic links can point to a non-existent target.

When creating a symbolic link, the operating system does not check to see if the target exists.

Symbolic links are reparse points.

There is a maximum of 31 reparse points (and therefore symbolic links) allowed in a particular path.

See CreateSymbolicLink to run this method in an elevated state.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static void CreateSymbolicLink(
	string symlinkDirectoryName,
	string targetDirectoryName
)

Parameters

symlinkDirectoryName
Type: SystemString
The name of the target for the symbolic link to be created.
targetDirectoryName
Type: SystemString
The symbolic link to be created.
Exceptions
ExceptionCondition
ArgumentException
ArgumentNullException
IOException
PlatformNotSupportedExceptionThe operating system is older than Windows Vista.
See Also