title: how to change the directory location in command prompt using C#?
body: <p>I have successfully opened command prompt window using C# through the following code.</p>
  
  <pre><code>    Process p = new Process();
      p.StartInfo.FileName = "cmd.exe";
      p.StartInfo.WorkingDirectory = @"d:\pdf2xml";
      p.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
      p.StartInfo.UseShellExecute = false;
      p.StartInfo.RedirectStandardOutput = true;
      p.StartInfo.RedirectStandardInput = true;
  
  
      p.Start();
  
      p.StandardInput.WriteLine(@"pdftoxml.win32.1.2.7 -annotation "+filename);
  
      p.StandardInput.WriteLine(@"cd D:\python-source\ds-xmlStudio-1.0-py27");
  
      p.StandardInput.WriteLine(@"main.py -i example-8.xml -o outp.xml");
  
      p.WaitForExit();
  </code></pre>
  
  <p>But, i have also passed command to change the directory.</p>
  
  <p>problems:</p>
  
  <ol>
  <li>how to change the directory location?</li>
  <li>Cmd prompt will be shown always after opened...</li>
  </ol>
  
  <p>Please guide me to get out of those issue...</p>