Files, propriété

Renvoie une collection Files constituée de tous les objets File contenus dans le dossier spécifié, y compris ceux qui sont cachés ou système.

object.Files

L'argument object représente toujours un objet Folder.

Notes

Le code suivant illustre l'emploi de la propriété Files :

Function ShowFileList(folderspec)
   Dim fso, f, f1, fc, s
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.GetFolder(folderspec)
   Set fc = f.Files
   For Each f1 in fc
      s = s & f1.name 
      s = s &  "<BR>"
   Next
   ShowFileList = s
End Function

Voir aussi

Attributes, propriété | DateCreated, propriété | DateLastAccessed, propriété | DateLastModified, propriété | Drives, propriété | IsRootFolder, propriété | Name, propriété | ParentFolder, propriété | Path, propriété | ShortName, propriété | ShortPath, propriété | Size, propriété | SubFolders, propriété | Type, propriété

Application: Folder, objet