How To Shutdown your Computer using Java Code


In this tutorial I create a program that shuts the computer down after 10 seconds, which gives you chance to abort the shutdown sequence. I used Java Runtime to execute the command line switch, and the second parameter for aborting the first command sequence. go to for the code.