[<<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.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson