File, objet

Donne accès aux propriétés d'un fichier.

Notes

Le code suivant illustre l'obtention d'un objet File et l'affichage d'une de ses propriétés.

Function ShowDateCreated(filespec)
   Dim fso, f
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.GetFile(filespec)
   ShowDateCreated = f.DateCreated
End Function

Propriétés

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

Méthodes

Copy, méthode | Delete, méthode | Move, méthode | OpenAsTextStream, méthode

Voir aussi

Drive, objet | Drives, collection | Files, collection | Folder, objet | Folders, collection