473,320 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

About download files

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
Jul 8 '06 #1
2 900

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.netschreef in bericht
news:%2****************@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

Jul 9 '06 #2
yxq
Thank you, but why cuteftp can download all the files?

"Michel Posseth [MCP]" <MS**@posseth.comдÈëÏûÏ¢ÐÂÎÅ:uD****************@T K2MSFTNGP04.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.netschreef in bericht
news:%2****************@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


Jul 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthew Moran | last post by:
I am creating a series of downloadable articles, career tools, spreadsheets, etc. However, some of the content is for "registered" guest. The registrants are stored in a database and logon. I...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
0
by: CodeMotion | last post by:
I have access to an internet directory and files will be placed in this directory periodically. I am writing a service to poll that directory and download the files for processing. I have figured...
2
by: moondaddy | last post by:
I have a asp.net app where a user will need to download multiple files at once. Below is some sample code I'm using to download a single file which works perfectly, however, rather than a single...
5
by: Bala | last post by:
Hi I displaying my pdf files ( F:\test\test1\test.pdf - for example file path) on datagrid for user download. when I right clik the link and its show like this file:///F:/test/test1/test.pdf....
1
by: a.r.austin | last post by:
Hello, I am trying to download a few files one after another from a remote server. Problem is that I don't know how to, or if I am able at all, set a time out for download. I don't want to time...
12
by: devospice | last post by:
Hi, I'm trying to create a download counter for individual files on a web site and I'm not sure how to do this. Right now I'm using Webalizer to just read the log files and see how many times...
2
by: Joey | last post by:
I have written an app in C#/asp.net 2.0 that is a system built to handle a large number of scenarios. Part of that system involves allowing users to download large files. As part of my original...
0
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: I'm working with project in my company by using ASP.Net 2.0 that allow the users to upload and download files to web site in the internet as backup. The user will first upload his...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.