title: Attempting to call command prompt execuable in a C# / ASP.NET / IIS 7.5 / Win7 Environment
body: <p>On the server, I'm attempting to open the command prompt and call an executable which converts a file to PDF. For this I am using the PDFCreator open source program.</p>
  
  <p>In C# I am calling with this code:</p>
  
  <pre><code>    ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe");
      processStartInfo.RedirectStandardInput = true;
      processStartInfo.RedirectStandardOutput = true;
      processStartInfo.UseShellExecute = false;
      Process process = Process.Start(processStartInfo);
  
      process.StandardInput.WriteLine(@"cd c:\program files (x86)\pdfcreator");
      process.StandardInput.WriteLine(@"PDFCreator.exe /PF""c:\dwf\dwf.dwf""");
  </code></pre>
  
  <p>It runs with no error, yet yields no result. What this PDFCreator.exe does is call another program, Autodesk Design Review which opens, uses the PDF driver to print to PDF, and saves the file. The command you see works fine being running standalone by me.</p>
  
  <p>From scouring other threads it seems security could be my issue. So I have gone to the PDFCreator and Design Review folders/executables and granted full access to NETWORK, NETWORK SERVICE, IIS_WPG, IIS_IUSRS, and ASP.NET Machine account (realize this is probably a security thread but will disable once i figure out source of the issue). This has not helped.</p>
  
  <p>It should be noted than i can change directory using the first command above, and then create a "test123" folder in both PDFCreator and Design Review folders. Seems I am getting close here, any ideas?</p>