Hello, I am new here and I have a bit of a problem. It's probably solvable and some of you with more experience will probably be able to help me, and I'd appreciate it!

So, I'd like to learn how to make a little tool that I'm making be able to download a file from the www (such as an update) and save it safely onto a desired location on the hard drive.

You can use WebClient:

System.Net.WebClient client = new System.Net.WebClient();

// This is where the downloaded file will be saved
string saveFileName = "C:\\abc.exe";

client.DownloadFile("http://website.com/abc.exe", saveFileName);

Thanks

Thanx friend! I appreciate this!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.