Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Where is the downloaded file stored on the system when

System.net.webclient.downloadfile is used ?

Is there any default location ?

Thanks
Posted

1 solution

Well MSDN says that this is the signature of the WebClient.DownloadFile method:
C#
public void DownloadFile(
    string address,
    string fileName
)


The example on MSDN states that the file gets stored in the Application.StartupPath folder. See here on the bottom of the page: WebClient.DownloadFile[^].

Best Regards,
Manfred
 
Share this answer
 
v2
Comments
fjdiewornncalwe 18-Feb-11 14:43pm    
Amazing what you can find when you search for it. +5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900