title: Invoke console app from windows service
body: <p>I have a simple windows service which i need to use to invoke a console application.The console app generates pdf to print by opening the adobe reader window.Running the console app works fine to print pdf.But invoking it from service not successful.It doesnt even show up the console window where i log events.</p>
  
  <pre><code>            Process pdfprocess = new Process();
              pdfprocess.StartInfo.FileName = @"C:\Documents and Settings\xyz\Desktop\dgdfg\PdfReportGeneration\bin\Debug\PdfReportGeneration.exe";
  
              pdfprocess.StartInfo.UseShellExecute = false;
              pdfprocess.StartInfo.RedirectStandardOutput = true;
              pdfprocess.Start();
  </code></pre>
  
  <p>But invoking other application like</p>
  
  <pre><code> pdfprocess.StartInfo.FileName = @"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe";
  </code></pre>
  
  <p>works fine.
  What will be the reason?</p>