Jul 21, 2018 01:46 PM
(This post was last modified: Jul 21, 2018 03:42 PM by Pesto50.)
I have a script that downloads a bunch of files from a list. I am using DownloadFileAsync since it allows me to use the progress bar.
Lets say my list looks like this:
If directory1, directory2, and directory3, do not exist, DownloadFileAsync will download the file to nowhere while still showing that the file was downloaded successfully.
What I want to ask is, is there a function or method that creates the directory (or directories) of the path and then downloads file, all while having the progress bar?
This is the DownloadFileAsync code:
Edit: Before you say, "Use CreateDirectory", look at the third post in this thread below
Lets say my list looks like this:
Code
/directory1/directory2/directory3/file.txt
/directory1/directory4/file2.txt
/directory1/file3.txtIf directory1, directory2, and directory3, do not exist, DownloadFileAsync will download the file to nowhere while still showing that the file was downloaded successfully.
What I want to ask is, is there a function or method that creates the directory (or directories) of the path and then downloads file, all while having the progress bar?
This is the DownloadFileAsync code:
Code
Dim _WebClient As New System.Net.WebClient()
AddHandler _WebClient.DownloadProgressChanged, AddressOf _DownloadProgressChanged
Label2.Text = "Downloading File 1"
_WebClient.DownloadFileAsync(New Uri(url_link), download_location)Edit: Before you say, "Use CreateDirectory", look at the third post in this thread below

