Share this page

# getdrive

Example: getdrive | File Manipulation Functions

Returns the name of the current drive. Windows only.

    int getdrive( void);

The getdrive function returns an integer representing the drive letter: 1 = A, 2 = B, etc.

## Return Values

This function returns zero upon success and (-1) for failure.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: