c# - Process Start() stuck -


i use following code :

process process = new process(); processstartinfo startinfo = new processstartinfo(); startinfo.filename = "cmd.exe"; startinfo.redirectstandardinput = true; startinfo.useshellexecute = false;  process.startinfo = startinfo; process.start(); // stuck here  using (streamwriter writer = process.standardinput) {     if (writer.basestream.canwrite)     {         // write commands     } } 

when call process.start() nothing appends, program stop progress. don't understand why, help.

edit : when press key in console, program continue...


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -