CHDIR


The CHDIR function allows the current working directory, as seen by the process environment, to be changed.

 

COMMAND SYNTAX

CHDIR(expression)

 

SYNTAX ELEMENTS

The expression should evaluate to a valid path name within the file system. The function returns a Boolean TRUE result if the CHDIR succeeded and a Boolean FALSE result if it failed.

 

EXAMPLES

IF CHDIR("/usr/jbc/src") THEN
    CRT "jBASE development system INSTALLED"
END

IF GETENV("JBCGLOBALDIR", jgdir) THEN
    IF CHDIR(jgdir:"\config") ELSE
        CRT "jBASE configuration cannot be found."
        ABORT
    END
END


jBC