Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- using System.Net;
- namespace Your_Namespace_Here_BOISSSS....
- {
- class Program
- {
- static void Main(string[] args)
- {
- String pname = "Name here";
- String dlink = "Link to download here";
- string title = @"Name here";
- Console.WriteLine(title);
- Console.WriteLine("Custom script you want to add here");
- WebClient wc = new WebClient();
- String key = wc.DownloadString(dlink);
- String path = @"Update\" + pname + "./your file extension of the file your uploading";
- System.Net.WebClient Dow = new WebClient();
- String patch = (@"Update");
- Directory.CreateDirectory(patch);
- Dow.DownloadFile(key, path);
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(pname + " has been installed");
- Console.WriteLine($"Now open " + patch + " and Extract " + pname + "./your file extension");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement