Paxar Gold 6037EX Printer User Manual


 
Configuring ROM-DOS 3-5
Extending Menu Items to AUTOEXEC.BAT
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