1、使用shutdown关机命令来实现。 using System.Diagnostics; int time = 3600; //单位为:秒 Process.Start("c:/windows/system32/shutdown.exe", "-s -t "+time); ShutDown用法及参数(XP) 用法: shutdown [-i | -l | -s | -r | -a] [-f] [-m computername] [-t xx] [-c "comment"] [-d up:xx:yy] 没有参数 显…