Skip to content

Program to Shut Down Windows PC

December 29, 2012
class ShutDownSystem
{
    public static void main(String arg[]) throws Exception
    {
        Runtime runtime = Runtime.getRuntime();
        Process proc = runtime.exec(“shutdown -s -t 0”);
        System.exit(0);
    }
}

From → Uncategorized

Leave a Comment

Leave a comment