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");
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson My Blog
Forum Rules