If it is always an image or a non-html file that you are trying to do a
File.Exist on, then the solution might be easy.
You can write some code to download whatever exists there (sample code -
http://www.gotdotnet.com/Community/U...6-38b3d3748dc9)
and when you do get everything as a stream, you could check the download
type .. if it's text or binary, because if it's text, chances are it's a 404
message.
- Sahil Malik
Independent Consultant
You can reach me thru my blog at -
http://www.dotnetjunkies.com/weblog/sahilmalik/
"Stephan Ainley" <ch*****@frayed.net> wrote in message
news:OW**************@TK2MSFTNGP11.phx.gbl...
Is there a way to have some sort of
File.Exist("http://www.google.com/img.gif) or whatever using the internet?
I'm downloading files using the System.Net.WebClient class and have just
been using try/catch to see but I hate using those.
Any help will be apreciated.
Thanks