FileCreateSymbolicLink Method (String, String, PathFormat) |
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
public static void CreateSymbolicLink( string symlinkFileName, string targetFileName, PathFormat pathFormat )
Exception | Condition |
---|---|
ArgumentException | |
ArgumentNullException | |
IOException | |
PlatformNotSupportedException | The operating system is older than Windows Vista. |