System restart using JAVA programming


import java.io.IOException;

public class Restart {

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

}

No comments:

Post a Comment