用法:(C++)
system("shutdown xxx")
关机
shutdown -s
shutdown -p
shutdown -f
关机+重启
shutdown -r
定时关机
shutdown -s -t 秒数
定时重启
shutdown -r -t 秒数
休眠
shutdown -h
注销
shutdown -l
取消所有程序
shutdown -a
用法:(C++)
system("shutdown xxx")
关机
shutdown -s
shutdown -p
shutdown -f
关机+重启
shutdown -r
定时关机
shutdown -s -t 秒数
定时重启
shutdown -r -t 秒数
休眠
shutdown -h
注销
shutdown -l
取消所有程序
shutdown -a