DateLastModified, propriété

Renvoie la date et l'heure à laquelle le fichier ou le dossier spécifié a été modifié pour la dernière fois. Lecture seule.

object.DateLastModified

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

Notes

Le code suivant illustre l'emploi de la propriété DateLastModified avec un fichier :

Function ShowFileAccessInfo(filespec)
   Dim fso, f, s
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.GetFile(filespec)
   s = UCase(filespec) & "<BR>"
   s = s & "Créé le:  & f.DateCreated & "<BR>"
   s = s & "Dernier accès le: " & f.DateLastAccessed & "<BR>"
   s = s & "Dernière modification le: " & f.DateLastModified
   ShowFileAccessInfo = s
End Function

Voir aussi

Attributes, propriété | DateCreated, propriété | DateLastAccessed, propriété | Drive, propriété | Files, 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: File, objet | Folder, objet