Page 1 of 1

Delay commands question?

Posted: 08 Feb 2015 10:21
by Dos_Probie
Can someone explain the following delay commands which appear to do the same thing as far as advantages or disadvantages.
~DP

Code: Select all

timeout /t 5 >nul
choice /n /t 5 /d y >nul

Re: Delay commands question?

Posted: 08 Feb 2015 10:38
by Squashman
I use choice in much of my automation tasks. Most of the time the automation runs the same but I may want to branch or stop the automation when I am testing something. The choice command gives me that option as well as a delay wheres TIMEOUT only gives me a delay.

Re: Delay commands question?

Posted: 08 Feb 2015 13:38
by Dos_Probie
Thanks for the info, so I guess you could say then that with "choice" you have "more choice's".
~DP :mrgreen: