[RESOLVED] How to get Date Modified from a file on my server (RESOLVED)
I have files that are accessible via URL. Is there a simple way to retrieve the date modified property? I have to iterate through 100's if not a few thousand files during this process so I need a fairly speedy solution.
Any ideas would be awesome!
Re: How to get Date Modified from a file on my server
I am trying to us the FileSystemObject and then the FileDateTime
vb Code:
Set MyFile = fsObj.GetFile("http://www.mywebsite.com/myfolder/myimage.jpg")
Re: How to get Date Modified from a file on my server
i don't believe there is any way to do this with the file system object
you can try with inet control
Re: How to get Date Modified from a file on my server
Thanks Westconn1. I will try that tomorrow. :)
Re: How to get Date Modified from a file on my server
The FSO isn't going to do it.
Unless the server sends a Last Modified header the INet control won't work either.
Then you're limited to using either WebDAV or FTP to do an attributes request, assuming the server supports one of these.
Re: How to get Date Modified from a file on my server (RESOLVED)
I just simply cheated...stored the values in my DB on upload...they may be a few seconds off from correct but good enough...
Re: How to get Date Modified from a file on my server (RESOLVED)
Should save on possible time zone corrections then too.
Re: How to get Date Modified from a file on my server (RESOLVED)
Good point dilettante. The server always stores this value in Eastern Standard Time. I will have to look into how I will save this in the local DB.