Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Folder Date
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00781126
Message ID:
00781352
Views:
23
Try this code:
How to set Creation Date/Time for a folder (WinNT)
http://www.news2news.com/vfp/?example=399

Change line
nResult = SetFileTime(hFolder, cFileTime, 0,0) && creation time
either to
nResult = SetFileTime(hFolder, 0, cFileTime, 0) && last access
or to
nResult = SetFileTime(hFolder, 0,0, cFileTime) && last write
Original link at VBNet portal:
Modifying the Date/Time of Folders and Files Under Windows NT+
http://www.mvps.org/vbnet/index.html?code/fileapi/folderdatetime.htm
Previous
Reply
Map
View

Click here to load this message in the networking platform