LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

GetDir

int GetDir (char currentDirectory[]);

Purpose

Gets the current working directory on the default drive.

Parameters

Output
Name Type Description
currentDirectory char [] The pathname of the current directory.

currentDirectory must be at least MAX_PATHNAME_LEN bytes long.

Note Note  MAX_PATHNAME_LEN is only reliable for ANSI single byte strings. For UTF-8 strings, call the IsUTF8PathLengthValid function to confirm that the file path is within the operating system character limit.
GetDir does not add a terminating \ to currentDirectory.

Return Value

Name Type Description
result int The result of the call.
Code Description
0 Success.
-3 General I/O error occurred.
-4 Insufficient memory to complete operation.

Additional Information

Library: Utility Library

Include file: utility.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Log in to get a better experience