Click or drag to resize

WorkDir Function

Return the currently selected working directory.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.10
Syntax
 FUNCTION WorkDir() AS STRING
View Source

Return Value

Type: String
Remarks
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:
X#
LOCAL cWorkDir AS STRING
cWorkDir := WorkDir()
SetDefault(cWorkDir + "samples\debug")
Examples