jmingo
asked on
Inet Question
I want to copy a file off a webserver to my computer, probably via http (have been using INET, but can use something else if there's a better solution) but only if the file date on the server is newer than the one on my computer.
Thanks
Thanks
ASKER
that seems to work pretty well. how can i tell the date of the file first though?
also what dll does that function reference???
also what dll does that function reference???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
is urlmon.dll common on all windows machines??
also what about finding the file date??
also what about finding the file date??
I belive it is a System .dll file that is used by Microsoft OLE (Object Linking and Embedding). I am certain that it is on all operating systems used by microsoft.
When you run Package and Deployment setup you have an option to ship the .dll with your package.
ASKER
ok great.
can it also find date modified on the server?
can it also find date modified on the server?
No, but you can look at the date when its downloaded to your computer
File Created "displayes the date"
Right click the file and choose properties.
File Created "displayes the date"
Right click the file and choose properties.
ASKER
its for an update program though, i don't want to download the file unless its newer than whats on their computer.
ASKER
Any ideas from anyone??
Its been more than 21 days since a comment has been added. My participation in this question seems to lean towards a solution.
Recommend: Accept egl1044
Recommend: Accept egl1044
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:
[Accept: egl1044 comment]
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
egl1044
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
[Accept: egl1044 comment]
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
egl1044
EE Cleanup Volunteer
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long
Call URLDownloadToFile(0, "http://www.something.com/yourfile.txt", "c:\test.txt", 0&, 0&)