• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

[C#] Enter CMD Command

Elite_Modz

Active Poster
Retired Staff
Active Member
Console ID Poster
Reference:
Code:
using System.Diagnostics;

Code:
private static void Computer_CMD(bool status)
  {
  ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe");
  processStartInfo.RedirectStandardInput = true;
  processStartInfo.RedirectStandardOutput = true;
  processStartInfo.CreateNoWindow = true;
  processStartInfo.UseShellExecute = false;
  Process process = Process.Start(processStartInfo);

  if (process != null)
  {
  process.StandardInput.WriteLine(text);
  process.StandardInput.Close();
  }

Code:
public static void CMD2(string text)
  {
  System.Diagnostics.Process.Start(text);
  }
 
General chit-chat
Help Users
      Chat Bot: Cerberus__11 has posted a new reply in the thread "*NEW* Mod Menu Serendipity v1.0.4".
      Back
      Top