Jump to content

Java + CMD


Recommended Posts

my school is going to contest i need some help

i want to exec commends using java to cmd

but the output of the cmd wont show on java

i want it output that cmd give show up in java's output

contest http://contest.cs.iupui.edu/


i think i will make program that has gui and exec commend to a commend line program

depends on what my partner wants to do

Link to comment
Share on other sites

You would need to use the java.lang.* method Runtime.exec(), which allows you to run programs outside.

"Developers often call this method to launch a browser for displaying a help page in HTML." http://www.javaworld.com/javaworld/jw-12-2...1229-traps.html

To execute and capture the output of an external program:


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...