Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a file's timestamp
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00298172
Message ID:
00298559
Views:
10
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform