![]() Here is a simple example showing how to use above function (DownloadFile) to download a file and save it on a local disk. ' Downloads the resource with the specified URI to a local file.Ĭonsole.WriteLine("Exception caught in process: ", _Exception.ToString()) Public Sub DownloadFile(ByVal _URL As String, ByVal _SaveAs As String)ĭim _WebClient As New () ''' Function to download a file from URL and save it to local drive This function uses System.Net namespace to download the file. To use this function simply provide the URL of the file and file name to save on local drive. Net Visual Basic code snippet download file from URL to local disk. ![]() ![]() Visual Basic Code Snippet - Download File from URL ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |