windows - How to get output and give input from/to batch file using java -


How can I get output from a batch file, but input the batch file as well? My question is self-explanatory. As I created a small code to run a batch file: process process = runtime.gettime (). Exec ("(My file)"); . But what will happen now?

You can get input and output streams from the process by using the respective recipient methods. / P>

Edit:

getInputStream ()

and

  getOutputStream ()  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -