Re: A very interesting thing that happens to me
I know teh code is horrible, yet it has to work well, not to be good.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace RemoteHelper
{
class Program
{
static void Main(string[] args)
{
WebClient w = new WebClient();
Console.WriteLine("Sprawdzanie środowiska pod kątem istnienia poprzedniej wersji programu...");
if (Directory.Exists("nvda"))
{
Process p2 = new Process();
p2.StartInfo.FileName = "nvda\\nvda\\nvda.exe";
p2.StartInfo.Verb = "runas";
p2.Start();
return;
}
Console.WriteLine("Trwa pobieranie plików pomocy zdalnej.\nW zależności od prędkości Twojego łącza internetowego może to zająć kilka minut...");
w.DownloadFile("http://violinist.pl/nvda.zip", "nvda.zip");
Console.WriteLine("Plik został pobrany. Trwa uruchamianie pomocy zdalnej.");
ZipFile.ExtractToDirectory("nvda.zip","nvda");
Process p = new Process();
p.StartInfo.FileName = "nvda\\nvda\\nvda.exe";
p.StartInfo.Verb = "runas";
p.Start();
return;
}
}
}
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector