Change the setting that determines the X# default drive and directory.
XSharp.Core (in XSharp.Core.dll) Version: 2.16
By default, when a X# program starts, the default drive and directory are the current X# drive and directory. Within the program, you can change this with SetDefault() — it sets the drive and directory where the application program creates and searches for files specified without a path name.
Note: Certain commands and functions that open files do not respect the SetDefault() setting.
These cases are noted explicitly in the documentation for those commands and functions.
SetDefault() does not change the X# drive and directory, but instead causes the application to use a different default.
To set additional search paths for file access, use SetPath().
This example uses SetDefault() to set and query the current default drive and directory: