Download File in vb.net desktop Application
Can anyone help me on how can I download file form anot开发者_Go百科her computer and save it to my computer..
Not sure exactly what you want to download or where from, but I'm guessing that what you're looking for is to download something from a website to a local file and if so, look at WebClient.DownloadFile
. See http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadfile%28VS.80%29.aspx for more info.
Otherwise, if you mean just copying files in the local network, then you can just use File.Copy
. http://msdn.microsoft.com/en-us/library/system.io.file.copy.aspx
精彩评论