English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What is the command to shutdown the pc from DOS prompt?

2007-03-12 23:51:01 · 6 answers · asked by Siva 3 in Computers & Internet Hardware Desktops

6 answers

Here is a handy way to shut down the computer from a DOS prompt or a batch file:

shutdown

Example: shutdown -r -f -t 01

Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536

2007-03-13 00:20:35 · answer #1 · answered by Anonymous · 1 0

you can shut down your pc from dos prompt like this :
type .... shutdown -s ( it'll give you 30 secs to save your work and then it'll shutdown)

for restart type shutdown -r
and for logoff type shutdown -l

for more options type shutdown only.

I tested these only on win xp ...

2007-03-13 01:20:10 · answer #2 · answered by TuRbOmAcH 1 · 0 0

I'll list a site in source to show you how to create a desktop icon to shutdown your PC.

2007-03-13 03:07:27 · answer #3 · answered by wayne548 3 · 0 1

I just press the big button. I make sure that
the power settings are right in desktop.

2007-03-20 21:58:01 · answer #4 · answered by Anonymous · 0 0

hold the power switch until it turns off....

works for me, every time

or try this

shutdown -s [to shutdown]

2007-03-12 23:54:43 · answer #5 · answered by JL 2 · 0 0

Press windows+D you will get desktop

2007-03-12 23:56:04 · answer #6 · answered by Anonymous · 0 2

fedest.com, questions and answers