【windows】利用dos命令控制关机、重启
1.关机指令
shutdown -s -t 时间
例如:shutdown -s -t 10 (10秒后自动关机)
也可以简写为
shutdown -s 默认为一分钟后自动关机
2.重启指令
shutdown -r -t 时间
例如:shutdown -r -t 1 (10秒后自动重启)
也可以简写为
shutdown -r 默认为一分钟自动重启
shutdown -s -t 时间
例如:shutdown -s -t 10 (10秒后自动关机)
shutdown -s 默认为一分钟后自动关机
shutdown -r -t 时间
例如:shutdown -r -t 1 (10秒后自动重启)
shutdown -r 默认为一分钟自动重启