Aide:FileCreateNTFSLink.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
FileCreateNTFSLink

###Description###
Creates an NTFS hardlink to a file or a directory

###Syntax###
FileCreateNTFSLink ( "source", "hardlink" [, flag] )


###Parameters###
@@ParamTable@@
source
	Path of the source to which the hardlink will be created.
hardlink
	Path of the hardlink.
flag
	[optional] this flag determines whether to overwrite link if they already exist.
	Can be a combination of the following:
	 0 = (default) do not overwrite existing link
	 1 = overwrite existing link
@@End@@


###ReturnValue###
@@ReturnTable@@
Success:	Returns 1.
Failure:	Returns 0.
@@End@@


###Remarks###
The destination directory must already exist.

This function works only on volume with NTFS File system.

If the source is a file, the hardlink must be on the same volume.
If the source is a directory cross volume is allowed.

FileDelete or FileMove can be used on hardlink.

To manage the link with the explorer you can use the shell extension <a href="http://forge.novell.com/modules/xfmod/project/?ntfslink">NTFSLink</a>



###Related###
FileCreateShortcut


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

###Function###
FileCreateNTFSLink

###Description###
Crée un lien dur NTFS vers un fichier ou un répertoire

###Syntax###
FileCreateNTFSLink ( "source", "hardlink" [, flag] )


###Parameters###
@@ParamTable@@
source
	Chemin de la source à laquelle le hardlink sera créé.
hardlink
	Chemin du lien dur.
flag
	[optionnel] cet indicateur détermine s'il faut remplacer un lien s'il existe déjà.
	Peut-être une combinaison des éléments suivants:
	 0 = (par défaut) de ne pas écraser lien existant
	 1 = écraser le lien existant
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne 1.
Échec:	Retourne 0.
@@End@@


###Remarks###
Le répertoire de destination doit déjà exister.

Cette fonction ne fonctionne que sur un volume avec un système de fichiers NTFS.

Si la source est un fichier, le lien dur doit être sur le même volume.
Si la source est un répertoire, le cross volume est autorisé.

FileDelete ou FileMove peut être utilisé sur un lien dur.

Pour gérer le lien avec l'explorateur, vous pouvez utiliser l'extension du shell<a href="http://forge.novell.com/modules/xfmod/project/?ntfslink">NTFSLink</a>



###Related###
FileCreateShortcut


###Example###
@@IncludeExample@@


Traducteur :TT22