Click or drag to resize

WorkDir Function

X#
Return the currently selected working directory.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION WorkDir() AS STRING
Request Example 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#
1LOCAL cWorkDir AS STRING
2cWorkDir := WorkDir()
3SetDefault(cWorkDir + "samples\debug")
Examples