AYUDA EN LÍNEA WINDEV, WEBDEV Y WINDEV MOBILE
Versión: 242526272820242025
// Declare the variables ResDateTimeCreation is string ResDateTimeModification is string ResDateTimeAccess is string FilePath is string // Select a file FilePath = "C:\MyDirectories\File.txt" // Retrieve the file date information ResDateTimeCreation = fDateTime(FilePath, "", fCreation) ResDateTimeModification = fDateTime(FilePath, "", fModify) ResDateTimeAccess fDateTime(FilePath, "", fAccess) IF ResDateTimeCreation <> "" AND ResDateTimeModification <> "" AND ResDateTimeAccess <> "" THEN // Display the different dates and times associated with a file Info("The date and time of creation is: " + ResDateTimeCreation + CR + ... "The date and time of modification is: " + ResDateModificationTime + CR + ... "Access date and time is: "+ ResDateAccessTime) ELSE // Display an error message if the retrieval was not performed Error(ErrorInfo(errMessage)) END
// Declare the variables ResDateTimeCreation is string ResDateTimeSystem is string FileTimePath is string // Select a file FilePath = "C:\MyDirectories\File.txt" // Retrieve the system date and time ResDateTimeSystem = DateSys() + TimeSys() // Change the creation date of the selected file ResDateTimeCreation = fDateTime(FilePath, ResDateTimeSystem, fCreation) IF ResDateTimeCreation <> "" THEN // Display the creation date Info("The date and time of creation is now: " + ResDateTimeCreation) ELSE // Display an error message if the retrieval was not performed Error(ErrorInfo(errMessage)) END
Última modificación: 27/03/2025
Señalar un error o enviar una sugerencia | Ayuda local
Buscando...
Acepto los términos de la licencia
Debe configurar el producto de la siguiente manera: