System shutdown using JAVA programming


import java.io.IOException;

public class Shutdown {

    public static void main(String[] args) throws IOException {
        Runtime rs=Runtime.getRuntime();
        rs.exec("shutdown -s -t 0");
    }

}

No comments:

Post a Comment