Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-66 © National Instruments Corporation
SetDir
int result = SetDir (char directoryName[]);
Purpose
Sets the current working directory to the specified directory. Under Windows 3.1, this function
can change the current working directory on any drive, however it does not change the default
drive. To change the default drive, use the SetDrive function.
Parameters
Input directoryName string New current working directory.
Return Value
result integer Result of operation.
Return Codes
0 Success.
-1 Specified directory not found or out of memory.
Parameter Discussion
Under Windows 3.1, directoryName must not contain a drive letter.
SetDrive
int result = SetDrive (int driveNumber);
Note: This function is available only on the Windows versions of LabWindows/CVI.
Purpose
Sets the current default drive.
Parameters
Input driveNumber integer New drive number (0 to 25).