how to change the directory location in command prompt using C#?
问题 I have successfully opened command prompt window using C# through the following 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