i'm using Windows XP, when i shut down the computer by access Start button, my computer will be shut down and turn off the whole power of my system.
i want to create a program to do this same thing, so in my function, i do this:
this'll shutdown my computer, but the power is not turn off entirely, there's still a message wait for me to press the power button at my CPU. the message is something like "It's safe to turn off your computer now".
any idea?
i want to create a program to do this same thing, so in my function, i do this:
Code:
{
system("shutdown -s -f");
/* or system("shutdown -s -f -t 01") to shutdown after 1 second. */
}
this'll shutdown my computer, but the power is not turn off entirely, there's still a message wait for me to press the power button at my CPU. the message is something like "It's safe to turn off your computer now".
any idea?