- Yasaklandı
-
- #1
private void neos1(string string_1, string string_2)
{
this.string_0 = string_2;
if (Directory.Exists(Application.StartupPath + "\\Dosya"))
{
using (WebClient webClient = new WebClient())
{
webClient.DownloadFileCompleted += this.method_0;
webClient.DownloadFileAsync(new Uri(string_1), Application.StartupPath + "\\Dosya\\" + string_2 + ".exe");
return;
}
}
Directory.CreateDirectory(Application.StartupPath + "\\Dosya");
using (WebClient webClient2 = new WebClient())
{
webClient2.DownloadFileCompleted += this.method_0;
webClient2.DownloadFileAsync(new Uri(string_1), Application.StartupPath + "\\Dosya\\" + string_2 + ".exe");
}
}
private void method_0(object sender, AsyncCompletedEventArgs e)
{
if (Directory.Exists(Application.StartupPath + "\\Dosya"))
{
Process.Start(Application.StartupPath + "\\Dosya\\" + this.string_0 + ".exe");
}
}
method_1("Direk indirceğiniz link", "Dosya Adı");
Sağol dostum kral adamsın.Vaktimiz olmadığı zaman linki bu hale getirip vakitimiz olduğunda basar indiririz oh mis hocam sen çok iyi bir detaysın nerde pratikçilik orda sen varsın❤
Teşekkürler , ben genelde vb.nette işin kolayına kaçıyorum c# uzun olabilirEline saglik da bu kadar kodu bosuna yazmissin direk WebClient tanimliyarak indirebilirdin ve programi acmak icinde process start kullanabilirdin.
.exe yerlerini .reg veya .dll yapabilirsinSanırım sadece exe için..
Dosya uzantısını otomatik tanıyıp, çalıştırabilecek kod için eklemem gereken string nedir acaba? Bat, nfo vs..
Rica ederim.teşekkürler.
chịu thôi ông biết làm sao giờdi CMT muon an lon nguoi ta luon ma hoai chang duoc met qua met
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?