title: How to call a console program from an action
body: <p>I am building an MVC application that includes an asynchronous image upload so each image, once uploaded, calls the action. Image uploading can be cpu intensive and require time so we are trying to avoid in-action processing.</p>
  
  <p>I have read about using async actions, but we are also processing images at other times, so we have opted to handle image processing through a console application.</p>
  
  <p>What is the proper method for calling a console application from an MVC action asynchronously? Basically we just want to pass the console app some parameters, and tell it start without waiting for any kind of response from the console.</p>
  
  <p>Our program file is an exe.</p>
  
  <p>Speed is our main concern here.</p>
  
  <p>Thanks so much for your help!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>As per Brian's suggestion here is what we added:</p>
  
  <pre><code>Process pcx = new System.Diagnostics.Process();
              ProcessStartInfo pcix = new System.Diagnostics.ProcessStartInfo();
              pcix.FileName = "C:\\utils_bin\\fileWebManager\\ppWebFileManager.exe";
              pcix.Arguments = WrkGalId.ToString() + " " + websiteId.ToString() + "" + " " + "19" + " \"" + dFileName + "\" ";
              pcix.UseShellExecute = false;
              pcix.WindowStyle = ProcessWindowStyle.Hidden;
              pcx.StartInfo = pcix;
              pcx.Start();
  </code></pre>