Delay commands question?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Dos_Probie
Posts: 233
Joined: 21 Nov 2010 08:07
Location: At My Computer

Delay commands question?

#1 Post by Dos_Probie » 08 Feb 2015 10:21

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

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: Delay commands question?

#2 Post by Squashman » 08 Feb 2015 10:38

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.

Dos_Probie
Posts: 233
Joined: 21 Nov 2010 08:07
Location: At My Computer

Re: Delay commands question?

#3 Post by Dos_Probie » 08 Feb 2015 13:38

Thanks for the info, so I guess you could say then that with "choice" you have "more choice's".
~DP :mrgreen:

Post Reply