Janitha

JAVA NETBEANS TUTORIALS

Wikipedia

Search results

Sunday, March 3, 2013

Computer Shutdown Using java - Netbeans JAVA Shutdown Code

try {
            String shutdownCmd = "shutdown -s";
    Process child = Runtime.getRuntime().exec(shutdownCmd);
   
        } catch (IOException ex) {
            Logger.getLogger(shutdown.class.getName()).log(Level.SEVERE, null, ex);
        }