title: Run Console application by providing one argument using web application
body: <p>I have a console application called DocToPDF.exe on the desktop. I need to run it on the button click of a web application.I figured out how to run the application. The question is, the console application takes one argument.I need to figure out the way to pass the argument.The argument to be passed is "3750" Here is my code</p>
  
  <pre><code>   System.Diagnostics.Process process = new System.Diagnostics.Process();
      process.StartInfo.FileName = "cmd";
      process.StartInfo.WorkingDirectory = @"C:\Users\itadmin\Desktop\DocToPDF\DocToPDF\DocToPDF\bin\Debug";
  
      process.StartInfo.Arguments= "/c \"" + "DocToPDF.exe" + "\"";
      process.StartInfo.UseShellExecute = false;
      process.StartInfo.RedirectStandardInput = true;
      process.Start();
  </code></pre>
  
  <p>And this is my console application that accepts the parameter using Console.Readline</p>
  
  <pre><code>  Console.Write("Enter Merchant Acct # : ");
    string strApprId = Console.ReadLine();
    strApprId = strApprId.Trim();
    Console.WriteLine("Something awesome is being processed......... ");
  </code></pre>