Page 9 of 62
SBasic User's Manual SBasic Version 2.7 Page 9
Printed: December 5, 1999
Environment variables
SB supports the use of two DOS environment variables. These variables
can help ease development of multiple projects in SBasic.
When SB begins execution, it checks for the existence of two
environment variables, SB_INCLUDE and SB_LIBRARY. SB assumes
SB_INCLUDE contains the path to a directory containing custom INCLUDE
files. Similarly, SB assumes SB_LIBRARY contains the path to a
directory containing the standard SBasic library files. If either of
these environment variables does not exist, SB defaults to the current
directory when searching for any corresponding files.
You can assign a path to either of these variables in your
AUTOEXEC.BAT file, using DOS' SET command.
Example:
set SB_INCLUDE=C:\MYPROJ\INC
set SB_LIBRARY=C:\SBASIC\LIB
These commands assign paths to the SB_INCLUDE and SB_LIBRARY
environment variables.