Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
the weird thing is, it worked before? this is my code

VB
Dim wc As WebClient = New WebClient()
       wc.DownloadFile("myfilehost\mods.zip", "mods.zip")


i download it from 4share
Posted
Updated 3-Nov-14 4:28am
v2

1 solution

First parameter should be the url and the second parameter the actual filename. You give the filename also in the URL. Check the example here:
http://msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx[^]

Good luck!
 
Share this answer
 

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