Friday, June 24, 2011

Delay for a few seconds in a Batch file

This is simple:

choice /T 10 /D Y /N

Replace 10 with the number of seconds to replace.  This will return an error code of 1 (1st choice on the list) so just be aware that errorcode=1 is success for this.

No comments: