PauseWithTimeout is a simple command line utility that extends the
pause command to allow a timeout to be added (in seconds).
It literally is a command line pause with timeout.
PauseWithTimeout asks the user to "Press any key to continue . . .", showing
also a count down timeout (in seconds). To continue the user needs to either
press a key (the same functionality as the DOS/Windows
command) or wait for the count down timer to expire. This allows a batch/command
script to exit either once the user has responded or after a suitable delay.
PauseWithTimeout has been tested on MS-Windows 7, 2008 (server), Vista, 2003 (server), XP and 2000. It should run on all versions of Windows, but has not yet been tested on other versions.
To download a zip of the executable click here: download PauseWithTimeout.zip
All you need to do to use the utility is to unzip it. You can either run it directly (i.e. place it in the same folder from which it is to be used) or place it somewhere in the path.
PauseWithTimeout without any arguments shows how it should be used:
where n is the number of seconds to wait before continuing
PauseWithTimeout is produced by www.cryer.co.uk.
When supplied with a number of seconds PauseWithTimeout will wait until either that number of seconds has elapsed (with a countdown) or until the user presses any key on the keyboard. For example:
Press any key to continue . . . 106
PauseWithTimeout is supplied as-is with no warrantees or fitness for purpose.
Limited support may be obtained by emailing the author care of email@example.com.
Windows Vista (and subsequent versions of Windows) incorporate the
Timeout" which can be used interchangeably with
If you work exclusively with Vista or later then the
command is likely to be sufficient, if you need to work with Windows XP or
PauseWithTimeout will be what you need.