Return the currently selected working directory.
XSharp.Core (in XSharp.Core.dll) Version: 2.10
Syntax View Source
FUNCTION WorkDir() AS STRING
public static string WorkDir()
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:
LOCAL cWorkDir AS STRING
cWorkDir := WorkDir()
SetDefault(cWorkDir + "samples\debug")
Examples See Also