LabWindows/CVI

Content Type
Programming Language
Current manual

SetDrive

SetDrive

int SetDrive (int driveNumber);

Purpose

Sets the current default drive.

Parameters

Input
Name Type Description
driveNumber int The drive number of the new default drive.

The mapping between the drive number and the logical drive letter is 0 = A, 1 = B, and so on.

Values: 0—25.

Return Value

Name Type Description
result int The result of the call.

Code Description
0 Success.
-1 Invalid drive number.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?