Does anyone know if you can find out if a file exists at a URL? Let's say I am looking for a picture. It is at http://www.somewhere.com/pics/mypicture.jpg

Is there a way to use the inet control to verify that that file is there?

That way when I try to bring that file into my program using a byte array, I don't get an error or have to wait for the control to time out.

I want to steer clear of Winsock, my program is already written around inet control.

Just a little more to help, I need to go from the lower folder on a site, let's say, http://www.somewhere.com/somefolder/anotherfolder/ and look for the picture there, if it isn't there, go to the next folder up like http://www.somewhere.com/somefolder/

I just want to add this into my program so no matter where the picture goes in the site, I can get it and use it with my program. The picture changes, that is why it can't be included with the program.