Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting a files date and time stamp in VFP
Message
De
16/09/1999 05:27:26
Wim Dieke
Tranquility Bv
Almere, Pays-Bas
 
 
À
15/09/1999 17:23:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00265216
Message ID:
00265361
Vues:
19
>Does anyone know how to set a files date and time stamp in VFP?

Consider using the WIN32 api function SetFileTime.
First open the file with _lopen (win32 api call) wich gives a file handle needed for SetFileTime.

The syntax:

BOOL SetFileTime(

HANDLE hFile, // identifies the file
CONST FILETIME * lpftCreation, // time the file was created
CONST FILETIME * lpftLastAccess, // time the file was last accessed
CONST FILETIME * lpftLastWrite // time the file was last written
);

HtH
---
Life is like a box of chocolates
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform