Advertisement
Itirican

Untitled

Jan 30th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.IO;
  7. using System.Net;
  8.  
  9. namespace Your_Namespace_Here_BOISSSS....
  10. {
  11. class Program
  12. {
  13. static void Main(string[] args)
  14. {
  15. String pname = "Name here";
  16. String dlink = "Link to download here";
  17. string title = @"Name here";
  18. Console.WriteLine(title);
  19. Console.WriteLine("Custom script you want to add here");
  20. WebClient wc = new WebClient();
  21. String key = wc.DownloadString(dlink);
  22. String path = @"Update\" + pname + "./your file extension of the file your uploading";
  23. System.Net.WebClient Dow = new WebClient();
  24. String patch = (@"Update");
  25. Directory.CreateDirectory(patch);
  26. Dow.DownloadFile(key, path);
  27. Console.ForegroundColor = ConsoleColor.Green;
  28. Console.WriteLine(pname + " has been installed");
  29. Console.WriteLine($"Now open " + patch + " and Extract " + pname + "./your file extension");
  30. Console.ReadKey();
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement