Hello friends,
Actually i am working in java project in which i have to dynamically interact with cmdline window i.e. pass data to cmd
& fetch from cmd dynamically. so plz give me some hint.
Thanx,
Regards
Patel
Hello stefanwagner,
what i mean is,
I have a dos program that I wish to access through my java program...
I can run the program and read the programs output using
DataInputStream in = new DataInputStream(new BufferedInputStream
process.getInputStream()));
But when I try to write to the program using...
DataOutputStream out = new DataOutputStream(new
BufferedOutputStream(process.getOutputStream()));
out.write(command.getBytes());
out.flush();
I get no response from the program and it doesn't seem to respond to the command.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.