如何设置关机重启的时间和次数啊
cmd吧
全部回复
仅看楼主
level 2
li5621720 楼主
RT
2013年05月04日 10点05分 1
level 12
关机倒计时设置 :
shutdown -s -t 时间【数字,单位为秒】
例如
shutdown -s -t 60 【60秒内关机】
重启倒计时设置 :
shutdown -r -t 时间【数字,单位为秒】
例如
shutdown -r -t 60 【60秒内重启】
关机或重启时间设置
At 时间 shutdown -s (-r)
时间格式:
00:00
24小时制,比如17:19即下午五点19分。。。记得用英文半角
P.S.如果设置重复关机可以加到开机启动项中,次数暂时不知道怎么设置
2013年05月09日 17点05分 2
level 12
楼主 bat百科
哪里有代码分享的
就有一个5次重启的代码了
2013年05月31日 10点05分 3
麻烦 给我写下吧 谢谢
2013年06月12日 14点06分
回复 li5621720 :额 我去找给你吧 我还不会写哦 呵呵
2013年06月13日 10点06分
level 12
@echo off
if not exist c:\1.txt echo. >c:\1.txt & goto err1
if not exist c:\2.txt echo. >c:\2.txt & goto err1
if not exist c:\3.txt echo. >c:\3.txt & goto err1
if not exist c:\4.txt echo. >c:\4.txt & goto err1
if not exist c:\5.txt echo. >c:\5.txt & goto err1
goto err2:err1shutdown -r -t 0:err2
解释:
这个东西能让别人重启五次。如果你愿意,复制if not exist c:\5.txtecho. >c:\5.txt & goto err1 再改几个名字,别人会崩溃的。
2013年06月13日 10点06分 4
1