LabWindows/CVI

Content Type
Programming Language
Current manual

SetDir

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 char [] The pathname of the new working directory.

directoryName cannot contain a drive letter.

Return Value

Name Type Description
result int The result of the call.

Code Description
0 Success.
-1 Specified directory not found or out of memory.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?