How to open a process with handles to stdin/stdout

D

Daniel Klein

What is the VB.NET class that allows you to control stdin and stdout
of a process


In Java, I would use...

Process process = Runtime.getRuntime().exec("myexecutable");
OutputStreamWriter outstream = new
OutputStreamWriter(process.getOutputStream());
BufferedReader instream = new BufferedReader(new
InputStreamReader(process.getInputStream()));


In Python, it's too simple for words,,,

instream, outstream = popen2.popen2("myexecutable")


In both of the above examples, you would then write to 'outstream' and
read from 'instream'...sort of a poor man's IPC.


I need to accomplish the same thing in VB.NET. What is the VB.NET
equivalent?

Thanks,
Daniel Klein
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top