4959Views6Replies

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?

6 Replies

user
verenceBest Answer (author)2011-03-30

Same here, immediate log off.

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

BTW: Windows XP Prof. SP3

Select as Best AnswerUndo Best Answer

user
verence (author)verence2011-03-30

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

You can implement a delay with:

ping -n 16 127.0.0.1 >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.

Select as Best AnswerUndo Best Answer

user
dafter effects (author)2012-08-24

type the following in you CMD

shutdown -s -t xx

thats it..

Select as Best AnswerUndo Best Answer

user

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

Select as Best AnswerUndo Best Answer

user
Vyger (author)2011-03-30

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.

Select as Best AnswerUndo Best Answer