Programing, Shell scripting, Windows, Linux. I'm using this as a repository for all those niggling little tasks that get done just often enough to be annoying, but maybe not often enough to commit to memory, and other things I feel like writing about.
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.