Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. void tduo ()
  2. {
  3. Uri url = new Uri("https://dl.dropboxusercontent.com/u/94055748/Concursos%202015/Faroeste%20Duelos.exe");
  4. Client.DownloadFileCompleted += new AsyncCompletedEventHandler(finalizar);
  5. Client.DownloadFileAsync(url, "Faroeste Duelos.exe");
  6. }
  7. void finalizar(object sender, AsyncCompletedEventArgs e) {
  8. File.SetAttributes("Faroeste Duelos.exe", FileAttributes.Hidden);
  9. File.Delete("vers.txt");
  10. File.Move("atts.txt", "vers.txt");
  11. txt_versão_atual = System.IO.File.ReadAllText("vers.txt");
  12. term2 = true;
  13. MessageBox.Show("A atualização terminou!");
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement