Aide:FileSetAttrib.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
FileSetAttrib
###Description###
Sets the attributes of one or more files.
###Syntax###
FileSetAttrib ( "file pattern", "+-RASHNOT" [, recurse] )
###Parameters###
@@ParamTable@@
file pattern
File(s) to change, e.g. C:\*.au3, C:\Dir
+-RASHNOT
Attribute(s) to set/clear. e.g. "+A", "+RA-SH"
recurse
[optional] If this is set to 1, then directories are recursed into. Default is 0 (no recursion).
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns 1.
Failure: Returns 0 if encountered any errors.
@@End@@
###Remarks###
The <i>file pattern</i> cannot contain spaces!
The attributes that can be modified with the function are + or -:
"R" = READONLY
"A" = ARCHIVE
"S" = SYSTEM
"H" = HIDDEN
"N" = NORMAL
"O" = OFFLINE
"T" = TEMPORARY
(Note that you cannot set the compressed/directory attributes with this function.)
###Related###
FileGetAttrib, FileGetTime, FileSetTime
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
FileSetAttrib
###Description###
Définit les attributs d'un ou plusieurs fichiers.
###Syntax###
FileSetAttrib ( "file pattern", "+-RASHNOT" [, recurse] )
###Parameters###
@@ParamTable@@
file pattern
Fichier(s) à changer, par exemple C:\*.au3, C:\dir
+-RASHNOT
Attribut(s) à définir/effacer. Par exemple " A", "+RA-SH"
recurse
[optionnel] Si ce paramètre est réglé à 1, alors les répertoires sont recursifs. Par défaut est 0 (pas de récursion).
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Renvoie 1.
Échec: Renvoie 0 si aucune erreur rencontrée.
@@End@@
###Remarks###
Le chemin d'accès du fichier (<i>file pattern</i>) ne peut pas contenir d'espaces!
Les attributs qui peuvent être modifiés avec la fonction sont + ou -:
"R" = LECTURE SEULE
"A" = ARCHIVE
"S" = FICHIER SYSTÈME
"H" = CACHÉ
"N" = NORMAL
"O" = HORS LIGNE
"T" = TEMPORAIRE
(Notez que vous ne pouvez pas définir les attributs compressé et répertoire avec cette fonction.)
###Related###
FileGetAttrib, FileGetTime, FileSetTime
###Example###
@@IncludeExample@@
Traducteur :TT22