关机程序 [英] shutdown.exe tmer
本文介绍了关机程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嘿,
尝试运行
shutdown.exe -l -t 10
仅显示了关机帮助手册.
我想到了
简洁但可行的解决方案
ping -n 10本地主机
shutdown.exe -l <br/>
那解决方案有多浪费呢?
我曾想下载sleep.exe,但我希望我的bat文件能在没有先例的机器上工作.
还有其他想法吗?
谢谢
hey,
trying to run
shutdown.exe -l -t 10
only showed shutdown help manual.
I thought of unelegant but working solution of
ping -n 10 localhost
shutdown.exe -l
How wasty is that solution?
I thought of downloading sleep.exe, but I want my bat file to work on machine with no previuse preperations.
any more ideas?
Thanks
推荐答案
>
elad2109写道:
elad2109 wrote:
还有其他想法吗?
我实际上不确定您要做什么,但也许此信息 [
I''m not actually sure what you are trying to do but perhaps this information[^] will help you.
我认为您是受害者Microsoft严重不足的文档.经过几次测试,我得出的结论是,当-t xx被称为关闭超时时,这意味着仅此而已,并且不适用于注销.
您还应该测试-f开关,因为这似乎与他们所说的完全相反,即使用-l -f应用程序不会自动关闭.尝试使用记事本和未保存的更改来了解我的意思.
艾伦.
I think you are a victim of Microsoft''s woefully inadequate documentation. After a few tests I''ve come to the conclusion that when -t xx is referred to as a timeout for shutdown it means just that and it does not apply to log off.
You should also test the -f switch as that seems to do the exact opposite of what they say, i.e. with -l -f applications will not be closed automatically. Try it with Notepad and unsaved changes to see what I mean.
Alan.
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)
这篇关于关机程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文