Creating an Auto-Update with Pastebin

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Creating an Auto-Update with Pastebin



I'm currently trying to build my own Auto-Update with Pastebin.
I want to define if my created paste contain "https" and if yes then the code should download the link in the paste and replace the old version with new one. I already looked online for this solution but it seems to be that there is no solution or i just miss it.



Here is my code that i created but it gives me an exception error, access denied etc...


private async void download()
{
WebClient update = new WebClient();
string selectedpath = Path.Combine(textBox1.Text);
string str = update.DownloadString("https://pastebin.com/raw/6FH010dL");
update.DownloadFile(str, selectedpath);
}

private async void bunifuFlatButton13_Click(object sender, EventArgs e)
{
tabControl1.SelectedTab = tabPage5;
await Task.Delay(6000);
progressBar2.Increment(100);
download();
}









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

C# - How to create a semi transparent or blurred backcolor on windows form

Will Oldham

Makefile test if variable is not empty