@echo off set hour=%time:~0,2% if %hour% EQU 3 ( C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep ) :END