# ChangeDirectory

Changes the current directory.

### Synopsis

`Item ChangeDirectory( char *path )`

### Description

Changes the current task's working directory to the absolute or relative location specified by the path, and returns the item number for the directory.

### Arguments

path
  An absolute or relative pathname for the new current directory.

### Return Value

The function returns the item number of the new directory or a negative error code if an error occurs.

### Implementation

SWI implemented in file folio V20.

### Associated Files

filefunctions.h

### See Also

``GetDirectory`()`