utku1114
Banned Member
Selam arkadaşlar bir proje için auto update yapıyordum bunu da sizinle paylaşmak istedim
Çok basit şekilde doysa indirebiliyorsunuz özellikler eklenebilir
Temel Mantığı Öğrenmek İçin Güzel Olabilir
Kodlar En Aşşağıda!

Status Control
Version Control(İndiricinin kendisine de eklenebilir)
Sürüm Notları (Siteden Çeker)
Yapımcı Vb.
Dosya İndirme(Dosyanın Konumunu Değiştirme Eklenecek)

Yapımcı:Utku
Dil:C#




Çok basit şekilde doysa indirebiliyorsunuz özellikler eklenebilir
Temel Mantığı Öğrenmek İçin Güzel Olabilir
Kodlar En Aşşağıda!
Status Control
Version Control(İndiricinin kendisine de eklenebilir)
Sürüm Notları (Siteden Çeker)
Yapımcı Vb.
Dosya İndirme(Dosyanın Konumunu Değiştirme Eklenecek)
Yapımcı:Utku
Dil:C#



C#:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net;
using System.IO;
using System.Diagnostics;
using System.Threading;
namespace Auto_Update_V1._0
{
class Update
{
WebClient webClient;
static void Main(string[] args)
{
WebClient myClient = new WebClient();
string url = "http://mortalxesc.cf/y.png";
string yol = @"C:\y.png";
string Status;
try
{
using (var client = new WebClient())
{
using (client.OpenRead("https://google.com"))
{
Console.ForegroundColor = ConsoleColor.Green;
Status = "Online";
}
}
}
catch
{
Status = "Offline";
}
string Version = myClient.DownloadString("https://raw.githubusercontent.com/keytestcode/Version-V1.1/main/Version-V1.1");
string Yenilikler = myClient.DownloadString("https://raw.githubusercontent.com/keytestcode/Yenilikler/main/Yenilikler");
Console.ForegroundColor = ConsoleColor.Yellow;//Konsol rengi sarı.
Console.WriteLine("---------------------------");
Console.WriteLine("[+] Yapımcı: Blackjack");
Console.WriteLine("[+] Ad: Auto Update V1.5");
Console.WriteLine($"[+] Status: {Status}");
Console.WriteLine("---------------------------");
Console.SetCursorPosition(0, Console.CursorTop -0);
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine($"Yeni Sürüm Bulundu {Version}");
Thread.Sleep(TimeSpan.FromSeconds(2));
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine($"{Yenilikler}");
Thread.Sleep(TimeSpan.FromSeconds(6));
Console.Clear();
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("[+] İndirme İşleminiz 5 Saniye içinde başlatılacak!");
Thread.Sleep(TimeSpan.FromSeconds(5));
Console.ForegroundColor = ConsoleColor.Cyan;
if (true)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
myClient.DownloadFile("http://mortalxesc.cf/y.png", @"C:\y.png");
myClient.DownloadFileAsync(new System.Uri(url), yol);
Console.WriteLine("[+] İndirme İşleminiz Başladı ...");
Console.ReadKey();
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("[+] İndirme işleminiz Başlatılamadı!");
}
}
}
}