Printable View
How can I use Java code to shutdown or restart a computer?
Never tried it but it's supposed to work Code: Runtime.getRuntime().exec("Shutdown -s");
Runtime.getRuntime().exec("Shutdown -s");