Home All Groups Group Topic Archive Search About
Author
8 Jul 2006 11:35 AM
yxq
Hello,
I want to download all the files from my server using the code below, but
the *.ini and *.dat type files can not be dowloaded, other type files can be
downloaded, why?

Private myWebClient As New System.Net.WebClient
myWebClient.DownloadFile(RemoteUri & FileName, tempPath & FileName)

Thank you
Steven

Author
9 Jul 2006 6:08 PM
Michel Posseth [MCP]
Probably your server doesn`t serve them ,,,  IIS has an extension filter so
you probably have to add the requested extensions

i may be false if you can see them in your browser , but i bet the above is
your problem :-)


Regards

Michel Posseth [MCP]



Show quoteHide quote
"yxq" <ga***@163.net> schreef in bericht
news:%23fSSYKooGHA.4988@TK2MSFTNGP05.phx.gbl...
> Hello,
> I want to download all the files from my server using the code below, but
> the *.ini and *.dat type files can not be dowloaded, other type files can
> be downloaded, why?
>
> Private myWebClient As New System.Net.WebClient
> myWebClient.DownloadFile(RemoteUri & FileName, tempPath & FileName)
>
> Thank you
> Steven
>
Author
9 Jul 2006 10:50 PM
yxq
Thank you, but why cuteftp can download all the files?

Show quoteHide quote
"Michel Posseth [MCP]" <M***@posseth.com> дÈëÏûÏ¢ÐÂÎÅ:uD%23SlK4oGHA.4***@TK2MSFTNGP04.phx.gbl...
>
> Probably your server doesn`t serve them ,,,  IIS has an extension filter
> so you probably have to add the requested extensions
>
> i may be false if you can see them in your browser , but i bet the above
> is your problem :-)
>
>
> Regards
>
> Michel Posseth [MCP]
>
>
>
> "yxq" <ga***@163.net> schreef in bericht
> news:%23fSSYKooGHA.4988@TK2MSFTNGP05.phx.gbl...
>> Hello,
>> I want to download all the files from my server using the code below, but
>> the *.ini and *.dat type files can not be dowloaded, other type files can
>> be downloaded, why?
>>
>> Private myWebClient As New System.Net.WebClient
>> myWebClient.DownloadFile(RemoteUri & FileName, tempPath & FileName)
>>
>> Thank you
>> Steven
>>
>
>