beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 33

background image

Configuring ROM-DOS 3-5

E x t e n d i n g M e n u I t e m s t o A U T O E X E C . B A T

The defined name of the menu item you have chosen becomes the value
of the environment variable CONFIG. For example, if you choose number
3, GAMES, from the preceding menu, the variable CONFIG is set to
GAMES. The CONFIG environment variable can then be used in your
AUTOEXEC.BAT file to further customize the startup sequence. This
environment variable is referenced by %CONFIG% in your
AUTOEXEC.BAT file.

An example of an AUTOEXEC.BAT file that continues the customization
process from the preceding MENU may look like this.

prompt $p$g

set temp=c:\mystuff\temp

c:\virus\scanit.com

rem Go to section that matches menu

rem choice made in CONFIG.SYS

goto %config%

:RESEARCH

path c:\bin;c:\ROMDOS;c:\ROMDOS\utils;c:\BORLANDC

cd \ROMDOS

rem Skip other sections and move to end

goto end

:WP

path c:\bin;c:\ROMDOS;c:\wp

wp

rem Skip next section and move to end

goto end

:GAMES

path c:\bin;c:\ROMDOS;c:\gamedir

cd \gamedir

gamelist.bat

goto end

:end