windows里有一个shutdown.exe文件(被包含在Path里),只要运行 shutdown.exe -s -t 就能指定关机时间。 例如:shutdown -s -t 7200 ,指定2小时后关机