system("SHUTDOWN")

i just basicly want to know how to use the "shutdown" function.

when i try it doesnt give an error but it displays like a help screen in the console window and talks about things like [/L] or [/S] and a bunch of others.

thanx in advance!!!
read the help message and it tells you everything about it.

if you want to shut down the computer, the command is "shutdown /s"
o ok thanx. i tried to read the help message but i just didnt really get it.
All system("") commands are simply command promt commands so if you are ever confused about any of them just go here: http://pcsupport.about.com/b/2009/07/01/command-prompt-commands.htm there is even a command that changes the color of the screen.

If all you want is a program that turns off your computer put this in a text file and save to your desktop as shutdown.bat:
1
2
3
4
echo off
echo are you ready to shut down your computer?
pause
shutdown /s

Then just click it and it will shut off your computer.
thanx yall
Topic archived. No new replies allowed.