荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: wolfron (flyselina我爱你^O^), 信区: Microsoft
标  题: [合集]关于shutdown命令
发信站: 荔园晨风BBS站 (Mon Dec 16 08:27:47 2002), 站内信件

agileboy (快乐笛子) 于Sat Dec 14 22:42:46 2002提到:

你的机子用shutdown命令能彻底关电源吗?

我试了很多机子都不行


alone (我入地狱) 于Sat Dec 14 22:56:33 2002提到:

怎么用shutdown来关机啊?
linux??



Princeship (princeship) 于Sun Dec 15 10:10:10 2002提到:

用重起,进入Windows后再关机。啊啊啊啊啊



wolfron (flyselina我爱你^O^) 于Sun Dec 15 10:33:17 2002提到:

FT!你都没写参数,怎么会shutdown呀!
shutdown -s 试试吧

Shutdown
Allows you to shut down or restart a local or remote computer. Used
without parameters, shutdown will logoff the current user.

Syntax
shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c
"message"] [-d[u][p]:xx:yy]

Parameters
-l
Logs off the current user, this is also the defualt. -m ComputerName
takes precedence.
-s
Shuts down the local computer.
-r
Reboots after shutdown.
-a
Aborts shutdown. Ignores other parameters, except -l and ComputerName.
You can only use -a during the time-out period.
-f
Forces running applications to close.
-m [\\ComputerName]
Specifies the computer that you want to shut down.
-t xx
Sets the timer for system shutdown in xx seconds. The default is 20
seconds.
-c "message"
Specifies a message to be displayed in the Message area of the System
Shutdown window. You can use a maximum of 127 characters. You must
enclose the message in quotation marks.
-d [u][p]:xx:yy
Lists the reason code for the shutdown. The following table lists the
different values. Value Description
u Indicates a user code.
p Indicates a planned shutdown code.
xx Specifies the major reason code (0-255).
yy Specifies the minor reason code (0-65536).

/?
Displays help at the command prompt.
Remarks
If you indicate a major and minor reason code, you must first define
these reason codes on each computer for which you plan to use the
particular reason. If the reason codes are not defined on the target
computer, Event Viewer cannot log the correct reason text.
Examples
To shut down \\MyServer in 60 seconds, force running applications to
close, restart the computer after shutdown, indicate a user code,
indicate that the shutdown is planned, log major reason code 125, and
log minor reason code 1, type:

shutdown -r -f -m \\MyServer -t 60 -d up:125:1

Formatting legend
Format Meaning
Italic Information that the user must supply
Bold Elements that the user must type exactly as shown
Ellipsis (...) Parameter that can be repeated several times in a command
 line
Between brackets ([]) Optional items
Between braces ({}); choices separated by pipe (|). Example:
{even|odd} Set of choices from which the user must choose only one
Courier font Code or program output



wolfron (flyselina我爱你^O^) 于Sun Dec 15 10:36:05 2002提到:

补充一下,我的是可以的。没有停要什么关机画面那,是和正常的一样的。^O^


agileboy (快乐笛子) 于Sun Dec 15 12:37:00 2002提到:

hehe~~~,我早就把那些参数贴出拉,很早以前的事了



Dingo (*心性野*) 于Sun Dec 15 16:07:53 2002提到:

我以前运行shutdown命令后,它居然关闭了系统,然后显示:
                       你现在可以安全地关机了……
哈哈。晕倒。所以,再也不用它了。


agileboy (快乐笛子) 于Sun Dec 15 16:20:18 2002提到:

呵呵,我的和你一样,搞了很多方法都无功



wolfron (flyselina我爱你^O^) 于Sun Dec 15 18:00:09 2002提到:

干什么一定要用命令呀!FT!
用开始》关机 不是很好吗?!
没事做?不如帮我回答问题好了,还有多多发有教育价值的贴^O^


Dingo (*心性野*) 于Sun Dec 15 19:37:14 2002提到:

  因为shutdown命令可以定时关机,系统自带的。


wolfron (flyselina我爱你^O^) 于Sun Dec 15 19:39:01 2002提到:

现在很多软件都可以这样啦!
如shutdown now


Dingo (*心性野*) 于Sun Dec 15 19:42:36 2002提到:

   既然系统自带,兴趣自然大点。


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店