Awesome-Windows/awesome-windows-command-line

at no longer works. Use timeout instead

Efreak opened this issue · 0 comments

Efreak commented

The at command no longer works on modern windows, and directs you to use schtasks instead, which is far less convenient. Instead, I use timeout /T SECONDS [/NOBREAK], which requires the console to remain open, but provides a countdown that can be skipped at any time. It takes a number of seconds as input.

timeout /t 3600 /nobreak && shutdown /h to hibernate in an hour, with a running countdown and disables the ability to skip the countdown (don't shut your PC off early because you fumbled alt+tab and typed in the wrong place...)