HTTP is a TCP transport protocol. It is not a file system protocol. You
cannot use an HTTP url with IO classes. You can either use a file path or
UNC, or use a web client to get the file via HTTP.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
"Nico P." <(E-Mail Removed)> wrote in message
news:643B73F1-958C-4A50-86A4-(E-Mail Removed)...
>I already know these classes and I tried this:
>
> If System.IO.Directory.Exists("http://localhost/ACalcComponents/") Then
> Me.txtError.Text = "Yeah!"
> Else
> Me.txtError.Text = "D'oh!"
> End If
>
> the answer is "D'oh", although the directory exists. I don't really know
> how
> the path string should look like? I also tried it with
> "file:///localhost/ACalcComponents/" , but I also doesn't work. Can you
> please give me a small example of your solution?
>
>
> "Kevin Spencer" wrote:
>
>> System.IO.Directory
>> System.IO.DirectoryInfo
>> System.IO.File
>> System.IO.FileInfo
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> If you push something hard enough,
>> it will fall over.
>> - Fudd's First Law of Opposition
>>
>> "Nico P." <(E-Mail Removed)> wrote in message
>> news:F7C3E898-29BF-4334-9980-(E-Mail Removed)...
>> > ok, here is my situation:
>> > I want to create an app that dynamically loads new components from a
>> > web
>> > server. to do that I have to read all files in a directory on the
>> > webserver.
>> > How can I do that?
>>
>>
>>
|