| Author |
command prompt from java
|
sonia arora
Ranch Hand
Joined: Mar 10, 2010
Posts: 31
|
|
how to open command prompt from java code?
getRuntime();
returns a Runtime object.
but when i call it , the variable is not recognised.
and there are lot of errors .
|
 |
sonia arora
Ranch Hand
Joined: Mar 10, 2010
Posts: 31
|
|
Runtime.getRuntime().exec("cmd.exe");
this did not work for me.
|
 |
Kiran Joshi
Ranch Hand
Joined: Sep 04, 2005
Posts: 54
|
|
Which operating system you are on?
|
 |
sonia arora
Ranch Hand
Joined: Mar 10, 2010
Posts: 31
|
|
|
windows xp.
|
 |
Jan Cumps
Bartender
Joined: Dec 20, 2006
Posts: 2207
|
|
Moved to our Beginning Java forum.
The question is not related to JDBC.
|
 |
 |
|
|
subject: command prompt from java
|
|
|