Platform: 98/NT 4.0 SP6/2000/XP
ApplicationDirectory$() Function - Description.
What is the ApplicationDirectory$() function?
Returns a string containing the path from which the current MapBasic application is executing.
String expression, representing a directory path.
By calling the ApplicationDirectory$( ) function from within a compiled MapBasic application, you can determine the directory or folder from which the application is running. If no application is running (e.g. if you call the function by typing into the MapBasic window), ApplicationDirectory$( ) returns a null string.
To determine the directory or folder where the MapInfo software is installed, call the ProgramDirectory$( ) function.
Dim sAppPath As String
sAppPath = ApplicationDirectory$()
' At this point, sAppPath might look like this:
File and directory names