beautypg.com

Avery Dennison 6035 Programmer Manual Rev.A 7/98 User Manual

Page 84

background image

3-26 ROM-DOS 6.22 User Manual

7/9/98

CHOICE (cont.)

A complete batch file example follows. Each prompt selection returns
an error level that can be trapped. The error level corresponds to the
order of the key choice. For example, with /c:teo, t returns 1, e returns
2, and o returns 3.

@echo off

cls

echo.

echo T Run TIME-IN Program

echo E Run Employee Update

echo O Run TIME-OUT Program

echo.

choice /teo /t:t,5 Please select option

if errorlevel 3 goto timeout

if errorlevel 2 goto update

if errorlevel 1 goto timein

:timeout

tmout.exe

goto end

:update

updat.exe

goto end

:timein

tmin.exe

goto end

:end