title: Command line process not working when run from C#
body: <p>I'm trying to uploading a file and then using server-side processes to convert it.</p>
  
  <p>This is part of a Visual Studio Web ASP.NET web application running on a ASP.NET Development server, localhost:8638</p>
  
  <pre><code>string fn = System.IO.Path.GetFileNameWithoutExtension(File1.PostedFile.FileName);
  Process p = new Process();
                      p.StartInfo.WorkingDirectory = Server.MapPath("/Data");
                      p.StartInfo.FileName = "cmd.exe";
                      p.StartInfo.Arguments = "soffice --headless --invisible -convert-to pdf "+fn+".ppt";
                      p.StartInfo.UseShellExecute = false;
                      p.StartInfo.RedirectStandardOutput = true;
                      p.Start();
                      p.WaitForExit();
  </code></pre>
  
  <p>I can manually open <code>cmd.exe</code> inside of the <code>Data</code>directory, then type this command, substituting the file name, and it'll work. However, running this code does not produce any result</p>
  
  <p>What am I missing, or doing wrong?</p>