Home > Language Reference > System Functions > CurDir$

CurDir$

The CurDir$ function returns the current working folder.

Usage

Used to acquire dynamically the current working folder.

Syntax

var$ = CurDir$()

Parameters

None.

Return value

var$, string, current working folder name.

See also

ChDir

Example

directory$ = Curdir$()     'directory$ contains "c:\winword" if the current working directory is c:\ winword