Gets the current disk drive.
#include <direct.h>
int _getdrive( void );
The _getdrive function returns the current (default) drive (1=A, 2=B, etc.).
The return value is stated above. There is no error return.
Standards:None
16-Bit:DOS, QWIN, WIN, WIN DLL
32-Bit:DOS32X
_chdrive, _dos_getdrive, _dos_setdrive, _getcwd, _getdcwd
See the example for _getdcwd.