Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.IO.Directory.CreateDirectory("C:/Activation");
- System.IO.File.Create("C:/Activation/activate.bat").Close();
- File.WriteAllText("C:/Activation/activate.bat", "C:" + Environment.NewLine + @"cd /." + Environment.NewLine + "cd C:/Windows/System32" + Environment.NewLine + @"slmgr.vbs /ipk " + Product_Key.Text + Environment.NewLine + @"slui.exe 4");
- Thread.Sleep(2000);
- var proc1 = new ProcessStartInfo();
- string newproc = (@"C:Activationactivate.bat");
- proc1.UseShellExecute = false;
- proc1.WorkingDirectory = @"C:WindowsSystem32";
- proc1.FileName = @"C:WindowsSystem32cmd.exe";
- proc1.Verb = "runas";
- proc1.Arguments = "/k " + newproc;
- proc1.WindowStyle = ProcessWindowStyle.Normal;
- System.Diagnostics.Process.Start(proc1);
- var proc1 = new ProcessStartInfo();
- string newproc = ("slmgr.vbs /ipk " + product_key.Text + @" & cd C:/Windows/System32" + @" & slui.exe 4");
- proc1.UseShellExecute = true;
- proc1.WorkingDirectory = @"C:WindowsSystem32";
- proc1.FileName = @"C:WindowsSystem32cmd.exe";
- proc1.Verb = "runas";
- proc1.Arguments = "/c " + newproc;
- proc1.WindowStyle = ProcessWindowStyle.Normal;
- System.Diagnostics.Process.Start(proc1);
Add Comment
Please, Sign In to add comment