PBL batch command serves as a simple yet handy interface for the PowerBASIC object module librarian program. It's a shorthand that "knows" and uses two hardcoded important locations:
%DOS%:\PWRBASIC\PBLIB | PowerBASIC object module librarian program EXE module. |
%DOS%:\PBASIC | Directory with MODULE.PBL library of PowerBASIC precompiled subprograms (functions and routines). |
PBL batch command simplifies entry into PowerBASIC object module librarian with the help of the KBD program (Marc Perkel, 1990) that places keystroke codes directly into the keyboard buffer, which is used to initiate librarian program.
The most typical usage of the PBL batch command (apart from occasional listing of library modules) is deletion of object module from the library. This is necessary when new version of the existing module has to be debugged, so that debugging environment would pick the new version, not the old one that's already in the library.
Demo of PBL command operation can be found below the command text.
: PBL PowerBASIC Object/Unit Librarian Interface 01/11/1996-01/13/1996 : ---------------------------------------------------------------------- : Copyright (C) 1996 by Vladimir Veytsel www.davar.net : 1. "?" - Display PBL.BTM script text (Equivalent: "/") @ECHO %TR% IF %1.==?. .OR. %1.==/. (LIST %_BATCHNAME ^ CLS ^ QUIT) PUSHD %DOS%:\PBASIC KBD "O MODULE" CR "L" > NUL %DOS%:\PWRBASIC\PBLIB KBD Clear > NUL POPD
Fri 4/19/02 18:34 C:\> PBL |
PBLIB: PowerBASIC Object/Unit Librarian version #3.20 PowerLIB: <none> Help, Open, Close, List, Map, Add, Delete, Extract, Quit ? O Power Library File Name: MODULE PBLIB: PowerBASIC Object/Unit Librarian version #3.20 PowerLIB: MODULE.PBL Help, Open, Close, List, Map, Add, Delete, Extract, Quit ? L Modules: 38 COLRMOD.PBU BRIGHT.PBU GETRECS.PBU SOUNDA.PBU TAILSTR.PBU FORMTXT.PBU TITLE.PBU OVERRGN.PBU COLRRGN.PBU DRAWHOR.PBU SAVERGN.PBU RESTRGN.PBU DRAWVER.PBU FORMRGN.PBU DISPLAY.PBU DRAWBOX.PBU CURDATE.PBU CURTIME.PBU REVERSE.PBU JUSTIFY.PBU PROGRES.PBU REPL.PBU PRNTSCR.PBU GETKEY.PBU GETDATA.PBU NUMRANG.PBU COPYRT.PBU COMPRES.PBU VALIDIO.PBU PROGRTM.PBU CONVHTM.PBU PARSE.PBU FILEREC.PBU DIGITAL.PBU VALDGRE.PBU TRANS.PBU LEAP.PBU WEEKDAY.PBU PBLIB: PowerBASIC Object/Unit Librarian version #3.20 PowerLIB: MODULE.PBL Help, Open, Close, List, Map, Add, Delete, Extract, Quit ? D UNIT/OBJ File Name: WEEKDAY Deleting module WEEKDAY.PBU in library MODULE.PBL PBLIB: PowerBASIC Object/Unit Librarian version #3.20 PowerLIB: MODULE.PBL Help, Open, Close, List, Map, Add, Delete, Extract, Quit ? Q Closing MODULE.PBL |