get the current working drive
int _getdrive( )
returns the current (default) drive number (1 = A, 2 = B, and so on).
// This is a self contained sample program for the function _getdrive,
// To run the program, enter the following command in the Script window:
// When it runs, a meassage will be printed like following:
// Current drive is C
int nCurrentDrive = _getdrive();
printf("Current drive is %c\n", (char)(nCurrentDrive + 'A' - 1));
Get the current working drive.