Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

runtime.getruntime.exec() getOutputStream()

799873Dec 29 2010 — edited Oct 24 2013
Hi,


can anyone tell me what this is used for?

i though i maybe could use it in this example

exec(cmd /c start)
out.write("dir".getBytes());

but that doesn't seem to work?

also does anyone know like if i want to start a cmd and want to keep that open and do multiple commands like first cd then dir
i thought u could with the ouputstream, but that isn't right? or am i wrong?


thanks in advance
This post has been answered by sabre150 on Dec 29 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2013
Added on Dec 29 2010
9 comments
1,807 views