JavaMix

it`s all about JavaPrograming

shutdown your system using Java program

// save all the open programs and files before you run this program

import java.io.*;
class Shutdown{
public static void main(String arg[]){
Runtime runtime = Runtime.getRuntime();
try{
Process proc = runtime.exec(“shutdown -s -t 0″);
System.exit(0);
}
catch(Exception e)
{
System.out.println(“e”);
}
}
}

Written by katta vijay

December 13, 2008 at 12:08 pm

Follow

Get every new post delivered to your Inbox.