Results 1 to 5 of 5
  1. #1
    newbieph is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default Exit command prompt

    Is there any code that will exit the command prompt?

  2. #2
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default

    System.exit(0);

  3. #3
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default

    oops you want to close the command prompt window... there is a way to hide it while the program is running but you can't close it from the program code, System.exit as you probably know exits the java program

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,404
    Rep Power
    20

    Default

    newbieph, do you plan to return to your first thread or is it your policy to post questions and ignore the responses?

    db

  5. #5
    newbieph is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    nope...it's just happened that my broadband didn't connect properly...but thank you for all your response......:)

Similar Threads

  1. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-29-2011, 11:34 PM
  2. New Command prompt
    By jmga9 in forum New To Java
    Replies: 4
    Last Post: 11-10-2010, 01:53 AM
  3. Command Prompt Java
    By kelvinsmj in forum New To Java
    Replies: 8
    Last Post: 11-27-2009, 10:30 AM
  4. How to run a project with the command prompt?
    By TexanProgrammer in forum NetBeans
    Replies: 4
    Last Post: 08-05-2009, 10:19 PM
  5. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •