Private Type BY_HANDLE_FILE_INFORMATION
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
dwVolumeSerialNumber As Long
nFileSizeHigh As Long
nFileSizeLow As Long
nNumberOfLinks As Long
nFileIndexHigh As Long
nFileIndexLow As Long
End Type
Private Declare Function GetFileInformationByHandle Lib "kernel32" Alias "GetFileInformationByHandle" (ByVal hFile As Long, lpFileInformation As BY_HANDLE_FILE_INFORMATION) As Long
Please enjoy ....... Greg.
"Life is full of learning, and then there is wisdom"
Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
and also ....
FILETIME
The FILETIME data structure is a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601. It is the means by which Win32 determines the date and time. FILETIME is used by the CoDosDateTimeToFileTime, CoFileTimeToDosDateTime, and CoFileTimeNow functions. It is defined as follows:
Members
dwLowDateTime
The low 32 bits of the Win32 date/time value.
dwHighDateTime
The upper 32 bits of the Win32 date/time value.
Remarks
The FILETIME data structure is used in the time conversion functions between DOS and Win32.
"Life is full of learning, and then there is wisdom"
snowei1,
You should be able to do it the filesystemobject as specified above, but you'll have to pass the actual path name. You can't use the web address, as far as I know...
"I think we're all Bozos on this bus!" - Firesign Theatre
You can get the modified date of a file on a web server provided you have a page on that server. The same code above with the FileSystemObject can be used and the code to retrieve the file can be something like:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.