Go to:  Davar site entry | Site contents | Site index | Personal computer | 4DOS | PowerBASIC | Text bottom

LINK-DAV  4DOS  Batch  Command

LINK-DAV batch command compiles a subprogram (function or routine) and places its object module into PowerBASIC object library MODULE.PBL.  It "knows" and uses two hardcoded important locations:

All compiler and librarian technicalities were hardcoded inside the LINK-DAV batch command, so that there is no need to remember any of them or waste time to type them in.  Compiler parameters were most carefully chosen and balanced once, and they could be forgotten thereafter for good.  Librarian interactive annoyances were substituted by generated on-the-fly command file.  The only required parameter is the name of the subprogram (function or routine) that is the source for the object module with the same name.  LINK-DAV batch command provides a handy tool for support of the modular design of all PowerBASIC programs presented on this site.

Demo of LINK-DAV command operation can be found below the command text.



@ECHO LINK-DAV  Convert Davar Web Site Links into HTML     03/27/2003-04/01/2003
@ECHO --------------------------------------------------------------------------
@ECHO %TR%
:      Copyright (C) 2003 by Vladimir Veytsel                       www.davar.net

 DIR %DOS%:\DAVAR\LINKS.TXT /EFHKMS > %DOS%:\LINK-DAV.LST
 FOR %Line IN (@%DOS%:\LINK-DAV.LST) DO GOSUB Process_Link_File
 DEL %DOS%:\LINK-DAV.LST /Q
 UNSET File_Name
 QUIT

:Process_Link_File -------------------------------------------------------------

 SET File_Name=%@UPPER[%@WORD[".",0,%Line]]

 IFF NOT EXIST %File_Name%.HTM THEN
     ECHO %S%%R%Links file %M%%File_Name%.HTM %R%doesn't exist - %M%conversion bypassed%D%
     RETURN
 ENDIFF

 IFF %@FILEAGE[%File_Name%.TXT] GT %@FILEAGE[%File_Name%.HTM] THEN
     CONVLNK %File_Name%
 ELSE
     ECHO %B%Links file %C%%File_Name%.TXT %B%has no new links - %C%conversion bypassed%D%
 ENDIFF

 RETURN
  


Compile function WEEKDAY and replace (Delete-Add) its object module in the MODULE.PBL library.


   Mon  6-16-03 13:10  C:\> LINK-DAV

   LINK-DAV  Convert Davar Web Site Links into HTML  03/27/2003-04/01/2003
   -----------------------------------------------------------------------
   CONVLNK(2.1)  Convert Link List C:\DAVAR\COMP-SCI\LINKS.TXT into HTML
      100% [*]   =======================================================
   Links file C:\DAVAR\CS\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\EXTRACTS\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\GO\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\HUMOR\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\INTERNET\LINKS.TXT has no new links - conversion bypassed
   CONVLNK(2.1)  Convert Link List C:\DAVAR\MATH\LINKS.TXT into HTML
      100% [*]   ===================================================
   Links file C:\DAVAR\MF\LINKS.TXT has no new links - conversion bypassed
   CONVLNK(2.1)  Convert Link List C:\DAVAR\MISCL\LINKS.TXT into HTML
      100% [*]   ====================================================
   CONVLNK(2.1)  Convert Link List C:\DAVAR\PC\LINKS.TXT into HTML
      100% [*]   =================================================
   Links file C:\DAVAR\PROGRAM\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\QUOTES\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\RUSSIAN\LINKS.TXT has no new links - conversion bypassed
   Links file C:\DAVAR\ZEN\LINKS.TXT has no new links - conversion bypassed
          
        


View [and save] LINK-DAV.BTM text
(Use [Back] button or [Alt]+[CL] to return here from the viewed text)
Copyright © 2003by
Go to:  Davar site entry | Site contents | Site index | Personal computer | 4DOS | PowerBASIC | Text top