home *** CD-ROM | disk | FTP | other *** search
- echo off
- REM
- REM SAMPLE ASK_BAT USE. MOST LIKELY USED IN YOUR AUTOEXEC.BAT FILE
- REM
- cls
- echo Sample use of ask_bat
- echo ---------------------
- REM
- REM Simple Yes/No requested within 5 seconds. Default is YES.
- REM
- echo Would you like to perform a chkdsk?
- ask_bat Yes 1 No 2 /H /T:5 /P " (Y/N) ---) "
- if errorlevel 2 goto nochk
- chkdsk
- REM
- REM Just get a keystroke within 2 minutes
- REM
- ask_bat /H /P "Pick a keystroke, any keystroke ...." /T:120
- :nochk
- REM
- REM Forced Response within 10 seconds. (RETURN) alone is invalid.
- REM
- cls
- echo How are you feeling today?
- ask_bat "Movin' slow" 1 Happy 2 Sad 3 /H /F /P "<H>appy or <S>ad ? " /T:10
- if errorlevel 3 goto sad
- if errorlevel 2 goto happy
- echo Kinda sluggish aren't we....
- goto next
- :sad
- echo Gee, sorry to hear that :-(
- goto next
- :happy
- echo Great! Top off your great day by registering a shareware program! :-)
- :next
- REM
- REM Forced Response, No Hot Keys, Wait indefinatly
- REM
- ask_bat sure 1 nope 2 /f /p "Start over from the top? (SURE/NOPE) ---)"
- if errorlevel 2 goto stop
- sample
- :stop
-