Changing AIEMD

Would you like to react to this message? Create an account in a few clicks or log in to continue.

The forum is dedicated to all the Aryan who believe in change and want to be changed

Latest topics

» is india lagging behind china??
Now answer this..... EmptyMon Sep 07, 2009 5:15 am by help

» how to install jdk effectively?
Now answer this..... EmptyMon Sep 07, 2009 5:13 am by help

» Money is not everything
Now answer this..... EmptySun Aug 16, 2009 4:42 am by Admin

» general knowledge test 4
Now answer this..... EmptyWed Jul 01, 2009 2:28 am by Admin

» loop problem...
Now answer this..... EmptyMon Apr 27, 2009 12:40 am by help

» companies address with hr email ids
Now answer this..... EmptyMon Apr 27, 2009 12:36 am by help

» Here is a new trick how to hack windows xp's admin password...
Now answer this..... EmptyWed Apr 22, 2009 1:42 pm by Soumen

» Gate Preparation
Now answer this..... EmptyFri Apr 17, 2009 5:40 pm by shubajit

» Now answer this.....
Now answer this..... EmptyWed Apr 15, 2009 7:40 pm by shubajit

HIt counter


2 posters

    Now answer this.....

    avatar
    Amit


    Posts : 11
    Join date : 2009-04-01

    Now answer this..... Empty Now answer this.....

    Post  Amit Wed Apr 08, 2009 10:24 am

    Write a program in java,which will shut down your pc.....
    avatar
    shubajit


    Posts : 2
    Join date : 2009-04-15

    Now answer this..... Empty Re: Now answer this.....

    Post  shubajit Wed Apr 15, 2009 7:40 pm

    import javax.swing.JOptionPane;
    public class shutdown
    {
    public static void main(String[] args)
    {
    try
    {
    Runtime rt = Runtime.getRuntime();
    Process pr = rt.exec("cmd /c shutdown -s");
    }

    catch (Exception ew)
    {
    JOptionPane.showMessageDialog(null,ew.toString());
    ew.printStackTrace();
    }
    }
    }

    This might work check it out.
    Remember:
    Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

      Current date/time is Tue Mar 19, 2024 10:34 am