runtime.getruntime.exec() getOutputStream()
799873Dec 29 2010 — edited Oct 24 2013Hi,
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