Send TAB to a child console (windows)
        Posted  
        
            by alex2k8
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by alex2k8
        
        
        
        Published on 2009-04-11T15:51:29Z
        Indexed on 
            2010/03/23
            5:33 UTC
        
        
        Read the original article
        Hit count: 565
        
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");
        © Stack Overflow or respective owner