title: To run cmd as administrator along with command?
body: <p>Here is my code:</p>
  
  <pre><code>try
  {
      ProcessStartInfo procStartInfo = new ProcessStartInfo(
                                              "cmd.exe", 
                                              "/c " + command);
      procStartInfo.UseShellExecute = true;
      procStartInfo.CreateNoWindow = true;
      procStartInfo.Verb = "runas";
      procStartInfo.Arguments = "/env /user:" + "Administrator" + " cmd" + command;
  
      ///command contains the command to be executed in cmd
      System.Diagnostics.Process proc = new System.Diagnostics.Process();
      proc.StartInfo = procStartInfo;
      proc.Start();
  }
  catch (Exception ex)
  {
      MessageBox.Show(ex.Message);
  }
  </code></pre>
  
  <p>I want to keep </p>
  
  <pre><code>procStartInfo.UseShellExecute = true 
  procStartInfo.RedirectStandardInput = false;
  </code></pre>
  
  <p>Is it possible to execute the command without using <code>process.standardinput</code>? 
  I try to execute command I've passed in argument but the command does not executes. </p>