'Downloading A File From Online Without Changing File Name

I want to download a file but the code snippet I have requires you to enter a file name. I want to keep the name of the file it downloads for simplicity sake.

The code I'm using is:

My.Computer.Network.DownloadFile(
"linkToDownloadFrom",
"nameOfDownloadedFile")


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source