Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modify file's timestamp
Message
De
20/10/1999 14:07:25
 
 
À
20/10/1999 12:42:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00278899
Message ID:
00278994
Vues:
18
Erik,
One thing that hasn't been mentioned is that VFP 5/6 FoxTouch() function works just slightly different than the FPW version. The date and time you provide is "adjusted" by your timezone offset before it's applied to the file. So you either have to know what this TZ bias is, OR read it from the registry. Of course it's stored in a binary value so you can't use the standard REGISTRY.PRG.

Rick


>>>I thought I remembered a Foxtools function that would let me modify a file's timstamp. "Touch()" or something. But I can't find it now. Anyone care to refresh me?
>>
>>I'm not a FoxTools kinda guy, but you could FOPEN the file, FREAD the first byte and FWRITE it back to change the date/time stamp.
>
>Yeah, I do that when all I need to do is change it to the current date/time, but in this case, I need to rewind.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform