954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Close all windows?

Hey,

I'm making a password program for my programming class. If the user doesn't get the password correct in 10 tries, then it says "Your hard drive is erased". (Obviously, it isn't erased). I've been looking for a code to end all programs running and close down everything and can't find one. Is it possible? I kinda want the shut down code in the sense that it only closes out of all programs but doesn't shut down.

Thanks :)

caswimmer2011
Light Poster
27 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

Hey, I don't think there is such a function that closes all windows for java. By all windows, I mean, even applications running with the "windows" system itself. (Not the applications java creates through a JAVA IDE)

I did some research and I think you may be able to do it with c++ or one of the languages in the .net framework.

Here's the link.

http://msdn.microsoft.com/en-us/library/ms724211%28v=VS.85%29.aspx

haranaboy
Light Poster
34 posts since Sep 2010
Reputation Points: 13
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: