Send TAB to a child console (windows)
- by alex2k8
I create a child console application with
_process = new Process();
_process.StartInfo.FileName = @"cmd.exe";
_process.StartInfo.UseShellExecute = false;
_process.StartInfo.RedirectStandardInput = true;
_process.StartInfo.RedirectStandardOutput = true;
_process.StartInfo.CreateNoWindow = true;
_proccess.Start();
Now I can go to c:\aaa
_process.StandardInput.Write("cd c:\\aaa\xD\xA");
But normally user can type c:\ + TAB + ENTER. How can I do the same? This does not work:
_process.StandardInput.Write("cd c:\\\0x9\xD\xA");