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 :)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.