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
Post a Comment