Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a files date and time stamp in VFP
Message
From
16/09/1999 05:27:26
 
 
To
15/09/1999 17:23:13
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00265216
Message ID:
00265361
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform