Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a file's timestamp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00298172
Message ID:
00298559
Vues:
9
>>Hi Bryan,
>>
>>It's been awhile.
>>
>>Just a bit of an addendum to what the other's have said. If the file resides on a network, you may or may not be able to do this, depending on the value of the timestamp. I've seen instances where, because the time stamp is not within a valid range for the network OS, that trying to modify the it will fail.
>
>
>Hey George,
>
>Yes, I've been away doing some C++/web stuff. Nice to be back. ;)
>
>Thanks to you, Ed, and Mike for all the tips. While waiting for a response, I tried something similar to what Ed proposed, by just increasing the file size by 1 byte, then returning it to the original size (truncating the original byte). I'll explore Erik's solution as well. Thanks again.

No need to increase the size! FOPEN() for read/write. FREAD() first byte. FSEEK() BOF. FWRITE() the same first byte. FCLOSE().
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform