I'm learning C# right now and I'm making a kind of tool where users can download certain files. However, I would like the downloaded file to end up in the Downloads folder and not in "bin\Realse"
Path was also created before: [(System.IO.Directory.CreateDirectory("C:\Users\" + Environment.UserName.ToString() + "\Downloads\Glebi-Tool\Games");) ]
Code:
private void btnMinecraft_Click(object sender, EventArgs e)
{
wc.DownloadFileCompleted += new AsyncCompletedEventHandler(FileDownloadComplete1);
Uri rarurl = new Uri("https://cdn.discordapp.com/attachments/1016411808887746570/1016422145229848686/MfW10_Fix_Repair_UWP_Generic.rar");
wc.DownloadFileAsync(rarurl, "MfW10_Fix_Repair_UWP_Generic.rar", @"C:\\Users\\" + Environment.UserName() + "\\Downloads\\Glebi-Tool\\Games");
}