Program to Shut Down Windows PC
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);
}
}
{
public static void main(String arg[]) throws Exception
{
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec(“shutdown -s -t 0”);
System.exit(0);
}
}
Leave a Comment