C# Programming
08-16-2009, 08:27 PM
Hi.
I have a winform that creates a process(cmd) and redirects its inputstream and outputstream to streamwriter and streamreader.
im able to write a command to that process(dir for example) and get the output and display it on textbox.
however, it seems that after i write to the inputstream i have to close it , only if i close the stream the command that ive sended is executed.
i want to be able to write more command to that stream and keep it open.
using the "flush" method on the streamwriter dosent seems to work.
how can i accomplish that task?
I have a winform that creates a process(cmd) and redirects its inputstream and outputstream to streamwriter and streamreader.
im able to write a command to that process(dir for example) and get the output and display it on textbox.
however, it seems that after i write to the inputstream i have to close it , only if i close the stream the command that ive sended is executed.
i want to be able to write more command to that stream and keep it open.
using the "flush" method on the streamwriter dosent seems to work.
how can i accomplish that task?