Here are two functions that allow Clipper code to find out what the current
drive and path are.

    Function:       GetDrive()
    Parameters:     None
    Returns:        String containing the current drive, i.e. D:, A:, B:, etc.

    Function:       GetPath()
    Parameters:     None
    Returns:        String containing the current path, i.e. \CLIPPER\LIB


If you have any questions or comments please call:

        Mike Taylor               Compuserv:  73310,3013
        58 N. Holly Dr.
        Maple Shade, NJ 08052     I sign on regularly to the NANFORUM.

        Work - (215) 236-2000 ext: 4443


To create the test program you can either use the library file or the individual
.obj files.

        Library file method:

            plink86 fi test lib clipper, drivelib
                    .or.
            link /se:256 test,,,clipper drivelib;

        .obj file method:

            plink86 fi test, getdrive, getpath, driveltr, currpath lib clipper
                    .or.
            link /se:256 test getdrive getpath driveltr currpath,,,clipper;


The library file drivelib.lib was created with Microsofts Library utility.

The C and ASM routines were created for use with the latest compilers from
Microsoft:  MSC 5.0 and MASM 5.0 and were coded for the large memory model.

Both the C and ASM routines have been test compiled under TurboC 2.0 and
TASM 1.0 but the .obj files that were generated were not linked into a test
program.


Files included in this ARC file:

README   TXT    This file your reading now
DRIVELIB LIB    Library file containing the GetDrive() and GetPath() routines
DRIVELIB LST    Listing of object files within driveelib.lib
GETDRIVE C      C source for GetDrive()
GETDRIVE OBJ    Object code for GetDrive()
GETPATH  C      C source for GetPath()
GETPATH  OBJ    Object code for GetPath()
DRIVELTR ASM    ASM source for DriveLtr() ( used by GetDrive() )
DRIVELTR OBJ    Object code for DriveLtr()
CURRPATH ASM    ASM source for CurrPath() ( used by GetPath() )
CURRPATH OBJ    Object code for CurrPath()
TEST     PRG    Clipper source for test program
TEST     OBJ    Object code for test program
DRIVELIB MAK    Make file to create .obj and drivelib.lib files
                  ( requires MSC C, MASM, MS Lib, and MS Link or PLink )
