On Feb 11, 1:44*am, jjm <twicethink...@gmail.com> wrote:
> i'm writing a batch file to mimic a simple menu system
>
> in my batch file i want to wait for user input for seconds, if user
> doesn't press any key during this period then make the default choice.
> i have googled for a while, what i know now is i could use ping to
> achieve the delay function , but i don't know how to get the user
> input during this period?
Hi,
You can also use editvar/editv32/editv64 or choose/choose32/choose64
editvar/choose - MS-DOS versions
editv32/choose32 - Windows console x86 versions
editv64/choose64 - Windows console x64 versions
editvar/editv32/editv64 is a utility that lets you interactively edit
environment variables. It has several features many have told me they
have found useful, such as timeout and masked input (displays '*' for
typed characters, useful for entering passwords).
choose/choose32/choose64 is an alternative to the Microsoft 'choice'
program and offers the same feature set with a couple of enhancements.
All programs are freeware, available from my web site:
http://www.westmesatech.com/editv.html
--
Bill Stewart