Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Technical Reference - <b>_fschdrv()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _fsChDrv()
 Change the current DOS disk drive
------------------------------------------------------------------------------
 C Prototype

 #include "filesys.api"

     USHORT _fsChDrv(
                       BYTE nDrive
                     )

 Arguments

     nDrive is the number of the disk drive that is to be the current
     disk drive.

 Returns

     _fsChDrv() returns zero if successful; otherwise, FS_ERROR.

 Description

     This function changes the current DOS drive.  It is equivalent to the
     CA-Clipper function DISKCHANGE().

 Examples

     .  The following code fragment illustrates the use of _fsChDrv():

        #include "filesys.api"
        .
        .
        .
        BYTE cDrv = 'd';
        if ( _fsChDrv( (BYTE) ( cDrv - 'a' ) ) )
        {
           // Report the error condition
        }

 Files  Library is CLIPPER.LIB, header file is Filesys.api.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson