Author Options:

cmd prompt timer command? Answered

the -t function (timer/countdown in seconds) for my cmd prompt is not working properly, is it just me, or is there something wrong? here is the command I was trying to use:

shutdown -l -t 15

but when I hit enter, it logs off immediately.  Any suggestions?



Best Answer 7 years ago

Same here, immediate log off.

Maybe the delay is only working for shut down, not log off.

BTW: Windows XP Prof. SP3

Just tested: delay works for shut down, not for log off.

You can implement a delay with:

ping -n 16 >nul

The 16 after the -n is the the number of seconds the command waits plus one - so the example command will wait 15 seconds.

type the following in you CMD

shutdown -s -t xx

thats it..

the xx represents the number of seconds remaining after shutdown..so if you type 15. it will shutdown after 15 seconds..


7 years ago

There is no time delay for logging off, the assumption is you want to do it now and switch to another loggin. Why do you want it to delay anyway?

If you are really determined you could write a batch file but its a bit overkill.