CURDIR( ) Function

Example   See Also

Returns the current directory.

Syntax

CURDIR([cExpression])

Returns

Character

Arguments

cExpression

Specifies the drive or volume for which CURDIR( ) returns the current directory or folder. If you omit cExpression, the current default drive or volume is assumed. The empty string is returned if the drive or volume you specify in cExpression doesn't exist. Note that this argument is only included for earlier versions of Visual FoxPro and FoxPro running unders Window 3.1 or MS-DOS.

Remarks

CURDIR( ) returns, as a character string, the current MS-DOS directory on a specified drive.