Java class that accesses the operating systems shell?

i have been told by my boss to find a class that will allow him to send and recieve information to the operating systems shell, as in dos, if i do not find the solution i am to be fired, please help me....im jp...but for real help me out

i have been told by my boss to find a class that will
allow him to send and recieve information to the
operating systems shell, as in dos, if i do not find
the solution i am to be fired, please help me....im
jp...but for real help me outIt doesn't seem that you have put yourself in a very good situation if you are about to be fired.
At any rate I think you want to use the Process class. Look at the API documentations for java.lang.Runtime and java.lang.Process. Using Process you can launch other programs (like system ones that run in the console) and you can read and write to the process using the input and ooutput streams of the process.
If you have more questions pleas be sure to post your formatted code so that we can be of more assistance.
Good luck to you and have a happy day.

Similar Messages

Maybe you are looking for