Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Java (http://www.programmingforums.org/forum17.html)
-   -   Closing Out Console With App (http://www.programmingforums.org/showthread.php?t=1405)

T3FLoN Dec 3rd, 2004 6:53 PM

hi every1,
ive been looking around and cant seem to find a way to close the console(dos) window at the same time i exit my application...would anyone be able to post me a method or a reference to a method that can help accomplish this?

T3FLoN Dec 3rd, 2004 6:59 PM

also is there a simple way to hide the consol like maybe minimize it on runtime or is it more complex to do then i think it is?

ZenMasterJG Dec 10th, 2004 3:42 AM

I don't know of any way to do that, but that doesn't mean there isn't a way. It probably wouldn't be very clean, though. Since java is designed to be OS-independent, and what your talking about is very much OS-dependent, i dont think java has much of any capability to pull off what you're looking for.

tempest Dec 10th, 2004 4:59 AM

:

#include <iostream>

int main() {
  /* .... blah .... */
  system("exit");
  return 0;
}


Ooble Dec 10th, 2004 12:07 PM

This is the Java forum, mate. :P


All times are GMT -5. The time now is 2:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC