Method | Description | |
---|---|---|
Create ( string junctionPoint, string targetDir, bool overwrite ) : void |
Creates a junction point from the specified directory to the specified target directory. Only works on NTFS. |
|
Delete ( string junctionPoint ) : void |
Deletes a junction point at the specified source directory along with the directory itself. Does nothing if the junction point does not exist. Only works on NTFS. |
|
Exists ( string path ) : bool |
Determines whether the specified path exists and refers to a junction point.
|
|
GetTarget ( string junctionPoint ) : string |
Gets the target of the specified junction point. Only works on NTFS. |
Method | Description | |
---|---|---|
CreateFile ( string lpFileName, EFileAccess dwDesiredAccess, EFileShare dwShareMode, |
||
DeviceIoControl ( |
||
InternalGetTarget ( SafeFileHandle handle ) : string | ||
OpenReparsePoint ( string reparsePoint, EFileAccess accessMode ) : SafeFileHandle | ||
ThrowLastWin32Error ( string message ) : void |
public static Create ( string junctionPoint, string targetDir, bool overwrite ) : void | ||
junctionPoint | string | The junction point path |
targetDir | string | The target directory |
overwrite | bool | If true overwrites an existing reparse point or empty directory |
return | void |
public static Delete ( string junctionPoint ) : void | ||
junctionPoint | string | The junction point path |
return | void |
public static Exists ( string path ) : bool | ||
path | string | The junction point path |
return | bool |
public static GetTarget ( string junctionPoint ) : string | ||
junctionPoint | string | The junction point path |
return | string |