I have an application (.NET 3.5) that runs, scans a webpage for links to PDF files, and downloads those files (using WebResponse). I want to modify it so that it ONLY downloads the file IF it has been changed since my program ran last. So, given that I have the file name:
http://www.SomeWebsite.com/customer_data/document.pdf
How can I determine the creation and last modified date of that file? Preferably WITHOUT downloading the file, of course.
Any suggestions?
http://www.SomeWebsite.com/customer_data/document.pdf
How can I determine the creation and last modified date of that file? Preferably WITHOUT downloading the file, of course.
Any suggestions?
Lalit MPosted Jan 27, 2010, 1:44 AM
here code sample of get last modification file information
//get the size of a file in bytes
lngBytes = FileLen("C:\\thefile.pdf");
vDate = FileDateTime("C:\\thefile.pdf");
//see if the file has a read-only attribute
if (vAttributes & vbReadOnly) {
//has read-only attribute
}
if (vAttributes & vbHidden) {
//has read-only attribute
}
another sample might be help