With the WebClient class:
using System.Net;
//...
WebClient Client = new WebClient ();
Client.DownloadFile("http://i.stackoverflow.com/Content/Img/stackoverflow-logo-250.png", @"C:\folder\stackoverflowlogo.png");
More Related Contents:
- How to rename the Windows Guest Account using C# code?
- How to detect Windows 64-bit platform with .NET?
- Create folder and file on Current user profile, from Admin Profile
- Programmatically Determine a Duration of a Locked Workstation?
- How can I run an EXE program from a Windows Service using C#?
- How do I ZIP a file in C#, using no 3rd-party APIs?
- Windows Application Startup Error Exception code: 0xe0434352
- How to detect Windows shutdown or logoff
- How to request administrator permissions when the program starts?
- Is there really any way to uniquely identify any computer at all
- Detect Antivirus on Windows using C# [closed]
- minimize app to system tray
- .NET (C#): Getting child windows when you only have a process handle or PID?
- Force download of a file on web server – ASP .NET C#
- Virtual webcam input as byte stream
- Can I get Memcached running on a Windows (x64) 64bit environment?
- Winforms issue – Error creating window handle [duplicate]
- Launch a process under another user’s credentials
- Can’t see localhost from UWP app
- How to get DPI scale for all screens?
- Convert System.Drawing.Icon to System.Media.ImageSource
- csc.exe reference external .dll file
- How to find an EXE’s install location – the proper way?
- How to get current windows username from windows service in multiuser environment using .NET
- Uninstall Custom Action Not Deleting Registry Key
- Send message to a Windows process (not its main window)
- Can’t run program because it asks me to attach on process
- Print html document from Windows Service in C# without print dialog
- Keeping window visible through “Show Desktop”/Win+D
- What does “Beta: Use Unicode UTF-8 for worldwide language support” actually do?