Skip to content

Instantly share code, notes, and snippets.

@Akronae
Created October 18, 2019 14:23
Show Gist options
  • Save Akronae/21ede5a88c730578b5a5a79da58f8e29 to your computer and use it in GitHub Desktop.
Save Akronae/21ede5a88c730578b5a5a79da58f8e29 to your computer and use it in GitHub Desktop.
Windows delayed sleeping script
set /P delay=" Sleep in (minutes): "
set /a delay=delay * 60
timeout /T %delay% & rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment