public static string cfg;
private void config_TextChanged(object sender, EventArgs e)
{
string cfg;
cfg = config.Text;
}
string belgeler;
private void gunaButton9_Click(object sender, EventArgs e)
{
belgeler = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
if (cfg == "emir")
{
WebClient cfg_emir = new WebClient();
cfg_emir.DownloadFile("https://cdn.discordapp.com/attachments/887427762992857198/957380665450594334/EmirYG-Legit", belgeler);
cfg_emir.DownloadFile("https://cdn.discordapp.com/attachments/887427762992857198/957380665601568868/EmirYG-Rage", belgeler);
MessageBox.Show(config.Text+" Adlı Kişinin Config Dosyası İndirildi.");
}
else if (cfg == "script")
{
WebClient cfg_melih = new WebClient();
cfg_melih.DownloadFile("https://cdn.discordapp.com/attachments/887427762992857198/957381224991694928/Script-Legit", belgeler);
MessageBox.Show(config.Text+" Adlı Kişinin Config Dosyası İndirildi.");
}
else
{
MessageBox.Show(config.Text+" Adında Config Bulunamadı");
}
}
text boxumun içerisine emir yazılınca cfg_emir.downloadfile içerisindeki linkteki dosyaları belgeler diye tanımladığım değişkenin içine indirmesini istiyorum fakat ne olursa olsun ..... Adında Config Bulunamadı hatası alıyorum