Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating Win 2000 workstation time with server time
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00564976
Message ID:
00565142
Views:
19
>>Thanks for the infomation.
>>
>>I was wrong to call it an inconsistency. The temp file I created on the server had the correct create timestamp, but for some reason the modified timestamp was from the workstation. ADIR() would only give me the modified timestamp. I know if I dug deeper I could get the create timestamp, but I feel it is a cleaner solution to use APIs than to use temp files. (By the way how do you get a file's create timestamp?)
>
>Check out File#9738. George Tasker's time utility may give you the ability to retrieve any filetime attribute you want.
>
>HTH.

Larry,

There's also the Windows File Names, which is also available in the download section. However, rather than either of these, unless one wants to modify a particular date/time stamp, I'd opt for the Windows Script Host's Scripting.FileSystemObject.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
* lcfilename is the fully qualified file name of interest
oFile = oFSO.GetFile(lcfilename)
? oFile.DateCreated
? oFile.DateLastAccessed
? oFile.DateLastModified
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform