# SetDir

int SetDir (char directoryName[]);

## Purpose

Sets the current working directory to the specified directory.

To change the default drive, use SetDrive.

## Parameters

Input
Name | Type | Description
directoryName | string | The pathname of the new working directory. directoryName cannot contain a drive letter.

## Return Value

Name | Type | Description
result | integer | The result of the call.
Code | Description
0 | Success.
-1 | Specified directory not found or out of memory.