DOS关闭命令 [英] DOS Shutdown command

查看:72
本文介绍了DOS关闭命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,


有没有人知道在DOS模式下发出关机的秘密命令,而上面没有Windows程序?不仅仅是单击电源关闭按钮会导致DOS模式下主板完全损坏吗?


迫切需要你的帮助?


谢谢提前。

解决方案


嘿,


有没有人知道在DOS模式下发出关闭的秘密命令没有覆盖上面的Windows程序?不仅仅是单击电源关闭按钮会导致DOS模式下主板完全损坏吗?


迫切需要你的帮助?


谢谢提前。



Shutdown

允许您关闭或重新启动本地或远程计算机。如果不使用参数,shutdown将注销当前用户。


语法

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


参数

-l

注销当前用户,这也是defualt。 -m ComputerName优先。

-s

关闭本地计算机。

-r

关机后重启。

-a

中止关机。忽略除-l和ComputerName之外的其他参数。您只能在超时期间使用-a。

-f

强制运行应用程序关闭。

-m [\\ComputerName]

指定要关闭的计算机。

-t xx

在xx秒内设置系统关闭的计时器。默认值为20秒。

-c" message"

指定要在系统关闭窗口的消息区域中显示的消息。最多可以使用127个字符。您必须将邮件括在引号中。

-d [u] [p]:xx:yy

列出关机的原因代码。下表列出了不同的值。值说明

u表示用户代码。

p表示计划的关机代码。

xx指定主要原因代码(0-255)。

yy指定次要原因代码(0-65536)。


/?

在命令提示符下显示帮助。

备注

如果您指出主要和次要原因代码,则必须首先在计划使用特定原因的每台计算机上定义这些原因代码。如果未在目标计算机上定义原因代码,则事件查看器无法记录正确的原因文本。

示例

要在60秒内关闭\\ MyServer,强制运行应用程序关闭,关机后重启计算机,指示用户代码,指示关机计划,记录主要原因代码125,并记录次要原因代码1,键入:


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


我也想和朋友们混在一起使用快速运行命令,也可以在dos中使用,只需输入tsshutdn并点击enter =)观看电脑关闭60秒警告用户约30秒关机。知识就是力量,分享并成长!



我也喜欢和朋友们混在一起并使用快速运行命令在dos中使用,只需键入tsshutdn并按Enter =)观察PC在60秒内关闭,警告用户约30秒关机。知识就是力量,分享并成长!






这个cmd在win2k操作系统上面的dos中不起作用吗?


关闭cmd在win2k中是否有效?


请进一步详细说明。 TNX


Hey,

IS there anyone know the secret command to issue a shutdown within DOS mode without a Windows program covering above it? Won''t simply just click the power off button causes total damage the motherboard within DOS mode?

Urgently need your help?

Thanks in advance.

解决方案

Hey,

IS there anyone know the secret command to issue a shutdown within DOS mode without a Windows program covering above it? Won''t simply just click the power off button causes total damage the motherboard within DOS mode?

Urgently need your help?

Thanks in advance.

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


I also like to mess with my friends and use a quick run command which can also be used in dos, simply type in tsshutdn and hit enter =) Watch the PC turn off in 60 seconds warning the user about shutdown at about 30 seconds. Knowledge is power, share it and grow!


I also like to mess with my friends and use a quick run command which can also be used in dos, simply type in tsshutdn and hit enter =) Watch the PC turn off in 60 seconds warning the user about shutdown at about 30 seconds. Knowledge is power, share it and grow!

Hi,

This cmd doesn''t work in dos above a Win2k OS?

NEither is the shutdown cmd works in win2k?

Pls further elaborate in details. tnx


这篇关于DOS关闭命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆