9.60. CHDIR

9.60 CHDIR — Change working directory

Description:

Change current working directory to a specified path.

This intrinsic is provided in both subroutine and function forms; however, only one form can be used in any given program unit.

Standard:

GNU extension

Class:

Subroutine, function

Syntax:
CALL CHDIR(NAME [, STATUS])
STATUS = CHDIR(NAME)
Arguments:
NAME The type shall be CHARACTER of default kind and shall specify a valid path within the file system.
STATUS (Optional) INTEGER stat