File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoke command prompt using java

 
srikanth arroju
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have to invoke command prompt using java program.

at the command prompt it should appear as


 
Eric Daly
Ranch Hand
Posts: 143
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this out:

http://forum.java.sun.com/thread.jspa?threadID=762618&messageID=4351862
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what Runtime.exec and the ProcessBuilder class are for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic