About download files

Y

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
 
M

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]
 
Y

yxq

Thank you, but why cuteftp can download all the files?

Michel Posseth said:
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 said:
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
 

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

Top