Does file exist using URL ??

P

Poppy

Is there anyway in .net to find out if a file exists using
its URL as opposed to its physical path ?
 
P

Patrice

You could use the WebClient class (see System.Net.WebClient) to issue a GET
request on the distant file..

(Of course, if it's a local file, it's much better to use its physical path)

Patrice
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top