新建记事本,将下面内容复制到记事本,重命名为停止休眠.bat,然后双击运行该文件;
rem 关闭计算机休眠
powercfg -h off
rem 设置关闭显示器时间,单位为分钟,0代表从不
set monitortime=0
rem 设置计算机睡眠时间,单位为分钟,0代表从不
set standbytime=0
powercfg -change -monitor-timeout-ac %monitortime%
powercfg -change -monitor-timeout-dc %monitortime%
powercfg -change -standby-timeout-ac %standbytime%
powercfg -change -standby-timeout-dc %standbytime%