FileCreateHardlink Method (String, String) |
[AlphaFS] Establishes a hard link between an existing file and a new file. This function is only supported on the NTFS file system,
and only for files, not directories.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void CreateHardlink(
string fileName,
string existingFileName
)
Public Shared Sub CreateHardlink (
fileName As String,
existingFileName As String
)
public:
static void CreateHardlink(
String^ fileName,
String^ existingFileName
)
static member CreateHardlink :
fileName : string *
existingFileName : string -> unit
Parameters
- fileName
- Type: SystemString
The name of the new file. This parameter cannot specify the name of a directory. - existingFileName
- Type: SystemString
The name of the existing file. This parameter cannot specify the name of a directory.
See Also