Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date of file
Message
 
À
30/05/2003 09:39:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00794382
Message ID:
00794542
Vues:
9
>Assuming you gave the function a name like FoxTouch (I vaguely remember there was FoxTouch doing this) :
>FoxTouch("c:\tmp\myfile.txt", datetime())
>It changes all 3 datetimes (create, last access, last write). Arrange code if you need to touch only one of them.

Cetin,

Yep, there's one in the Foxtools library. It can only modify the last modified date/time and it has a bug. It stamps the file with the current UTC time rather than the local time on some systems depending on the file system. I think the problem is that the function was orginally written for FAT file systems (which stores the local time), while NTFS uses UTC.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform