I have this small piece of code and it works great except I have to hard code the local file name. Is there a way to save downloaded file with original file name?
Dim sSourceUrl As String ' File to download with URL
Dim sLocalFile As String ' File to crate on the local system
Dim client As New WebClient
sSourceUrl = "http://www.download.com/file.txt
sLocalFile = "c:\Temp\file.txt"
Thanks for anything.