SETDRIVE


 

SUNDB86 supports file searching via the concept of 'Logged On Drives'. Within the screen definition file (SUNSCRN.DEF) is a table corresponding to the drive letters A through Z. Using the SETDRIVE program it is possible to define one, several or all of these drives as Logged On Drives. When combined with the DOS SUBST command (that allows drive letter designations to be assigned to subdirectories - consult the DOS User's Guide for more information), this concept can be extremely useful. Whenever a CHAIN, PREP, or OPEN instruction is executed within a PL/B program, an attempt is made to locate the specified file/program in the current directory. If unsuccessful, the Logged On Drives are then searched sequentially. Upon execution of SETDRIVE, the following screen appears:

 

 

SUNBELT MS-DOS ASSIGN DEFAULT DRIVES COMMAND Version x.x.x dd mmm yy

Copyright 1984-19xx Sunbelt Computer Systems, Inc.

F1=BACKUP; F2=FINISHED

 

DRIVES: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

        N N N N N N N N N N N N N N N N N N N N N N N N N N

 

The Logged On Drives include not only the current working directory but also those that have been turned on (set to 'Y') in the screen definition file through SETDRIVE.

 

 

See Also: Utilities

 



System Utilities REFORMAT SETGUID