cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
system("SHUTDOWN")
system("SHUTDOWN")
Mar 11, 2011 at 2:09am UTC
cainen172
(151)
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!!!
Mar 11, 2011 at 2:13am UTC
prophetjohn
(70)
read the help message and it tells you everything about it.
if you want to shut down the computer, the command is "shutdown /s"
Mar 11, 2011 at 2:52am UTC
cainen172
(151)
o ok thanx. i tried to read the help message but i just didnt really get it.
Mar 11, 2011 at 7:07pm UTC
bboy212
(114)
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.
Mar 11, 2011 at 10:08pm UTC
cainen172
(151)
thanx yall
Topic archived. No new replies allowed.