I can write the code below to start
cmd.exe to stay and not end:
Process p=Runtime.getRuntime().exec("cmd.exe /K ver"); // for example.
InputStream in=p.getInputStream();
InputStream err=p.getErrorStream();
Now how do I send another command to this process
p and capture its output?
OutputStream o=p.getOutputStream();
Can someone help? I just want to run one copy of
cmd.exe.