Return the currently selected working directory.
XSharp.Core (in XSharp.Core.dll) Version: 2.7
The working directory is where the associated .EXE file resides and was executed from.
The .EXE file is either CAVO2x.EXE or your linked application's .EXE, as appropriate.
This example uses the WorkDir() function to get the current directory before setting a new one:
1LOCAL cWorkDir AS STRING
2cWorkDir := WorkDir()
3SetDefault(cWorkDir + "samples\debug")
Examples See Also