Check whether URL exists

G

Greg Lovern

Is there a way to check whether a URL exists without downloading the
file?

I'm downlong a list of files from URLs using URLDownloadToFile. It
works fine, but I also need a way to quickly check whether all files
in a list of URLs are already downloaded to a given folder, without
taking the time to download each one.

I'm targeting Excel 2002, and I can't assume the user has anything
installed that isn't normally installed with Windows.

Any ideas?


Thanks,

Greg
 
J

Jef Gorbach

 Is there a way to check whether a URL exists without downloading the
file?

I'm downlong a list of files from URLs using URLDownloadToFile. It
works fine, but I also need a way to quickly check whether all files
in a list of URLs are already downloaded to a given folder, without
taking the time to download each one.

I'm targeting Excel 2002, and I can't assume the user has anything
installed that isn't normally installed with Windows.

Any ideas?

Thanks,

Greg

google found a couple of hits which might assist/answer your need:
http://www.mrexcel.com/forum/showthread.php?t=343208
http://www.sqldrill.com/excel/programming-vba-vb-c-etc/1021749-macro-check-if-url-exists.html
http://officeone.mvps.org/vba/http_file_exists.html
http://forums.techguy.org/business-applications/42085-excel-vba-sub-find-if..html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top