Description:
A string variable that contains the startup directory for either the Liberty BASIC programming environment or for the runtime engine EXE file depending on which one the Liberty BASIC program is running under.
. The format is "drive:\dir1", or "drive:\dir1\dir2" etc. There is no backslash appended to the StartupDir$ variable.
Usage:
print StartupDir$
As used with a FILES statement:
files StartupDir$, "*.txt", info$()
As used to access a text file in the same directory as the program. Notice that the backslash must be added to the beginning of the filename. This a change in v4.5.0. In the previous version the StartupDir$ variable did end in a backslash but this is changed to make make StartupDir$ behave more consistently with other path variables such as DefaultDir$.
Example:
open StartupDir$ + "\readme.txt" for append as #f
print #f, "Sample"
close #f
See also DefaultDir$