Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void tduo ()
- {
- Uri url = new Uri("https://dl.dropboxusercontent.com/u/94055748/Concursos%202015/Faroeste%20Duelos.exe");
- Client.DownloadFileCompleted += new AsyncCompletedEventHandler(finalizar);
- Client.DownloadFileAsync(url, "Faroeste Duelos.exe");
- }
- void finalizar(object sender, AsyncCompletedEventArgs e) {
- File.SetAttributes("Faroeste Duelos.exe", FileAttributes.Hidden);
- File.Delete("vers.txt");
- File.Move("atts.txt", "vers.txt");
- txt_versão_atual = System.IO.File.ReadAllText("vers.txt");
- term2 = true;
- MessageBox.Show("A atualização terminou!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement