Hi, ive been trying so many things to enter several commands from my java program but i havent been succesful. I hope someone can help...
This is what i want to do from java which i can do it manually from cmd.
1. open cmd
2. cd \123\ABC\edf\456
3. (run this command) dsm.cmd –f CREATE –b DSKfromjava –V bb9server.bbdn.local
***dsm.cmd takes this parameters: –f CREATE –b DSKfromjava –V bb9server.bbdn.local
now i can get in java to step 2 with no problem in jave using something like this..
However, I havent find a way to keep inputing commands from java to dos command... am I trying something impossible? PLEASE HELP!!
The steamgobbler from the article you mentioned seems perfectly fine, however i was never able to get an error stating that the class already exists, no matter if i had created or not! so i had to figure other things.. no matter what the .cmd will output something and ive added.. HOpefully that would solve it.
int exitVal = proc.waitFor();
You may have just won ten million dollars! Or, maybe a tiny ad.