This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes invoke command prompt using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "invoke command prompt using java" Watch "invoke command prompt using java" New topic
Author

invoke command prompt using java

srikanth arroju
Ranch Hand

Joined: Aug 02, 2006
Posts: 66
i have to invoke command prompt using java program.

at the command prompt it should appear as


Eric Daly
Ranch Hand

Joined: Jul 11, 2006
Posts: 143
try this out:

http://forum.java.sun.com/thread.jspa?threadID=762618&messageID=4351862


Studying for SCJP 6
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41076
    
  43
That's what Runtime.exec and the ProcessBuilder class are for.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: invoke command prompt using java
 
Similar Threads
Compiler Not Found, Despite Installing JDK
invoking c exe from java
Running Java Programs from the command prompt
Down loading software
Endless loop