BAP Online Manuals : Library Reference : Library by Name : currentdrive
Previous: create_processes
Next: cursor

6.2.31. currentdrive

gets or sets the current drive on the host system

SYNOPSIS

INCLUDE 'iolib.h'
currentdrive(Drive)

SYNTAX

currentdrive(Drive) (i) (o)

ARGUMENTS

integer(Drive) (i) Number of current drive

DESCRIPTION

If drive is a bound integer, currentdrive changes to the drive given, if Drive is unbound, the current drive is returned. Drive 'A:' is integer 1, 'B:' is 2 etc.

Note: This predicate is host dependent, it does not make sense on systems other than DOS or MS WINDOWS.

ERRORS

No runtime errors.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

servertype , cd


BAP Online Manuals : Library Reference : Library by Name : currentdrive
Previous: create_processes
Next: cursor