david_Tube

Untitled

Mar 21st, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. WebClient wc = new WebClient();
  2. string url = ("https://pastebin.com/raw/32MAMgNW/"); // update or no update
  3. string download = ("https://pastebin.com/raw/5GUzcsFW"); // download
  4. string update = new WebClient().DownloadString(url); // reads if there is an update
  5. string down = new WebClient().DownloadString(download); // reads download
  6. String pname = "FlameX";
  7. String path = @"" + pname + ".exe";
  8. {
  9. {
  10. if (update == "update")
  11. {
  12. // here i want to make it close the current one and open the new one. any idea how?
  13. }
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment