Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebClient wc = new WebClient();
- string url = ("https://pastebin.com/raw/32MAMgNW/"); // update or no update
- string download = ("https://pastebin.com/raw/5GUzcsFW"); // download
- string update = new WebClient().DownloadString(url); // reads if there is an update
- string down = new WebClient().DownloadString(download); // reads download
- String pname = "FlameX";
- String path = @"" + pname + ".exe";
- {
- {
- if (update == "update")
- {
- // here i want to make it close the current one and open the new one. any idea how?
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment