home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / util1 / pwrbat14.doc < prev    next >
Text File  |  1990-11-25  |  5KB  |  90 lines

  1. PowerBatch v1.4 Computing Systems        Registration $ 30.00
  2. UTIL NOV90 POWERBATCH BATCH COMPILER                                       
  3. FILES: pwrbat14.sdn
  4.  
  5. New to SDN
  6.  
  7. PowerBatch is a compiler for  batch file "type" commands.  At
  8. the present time there are  35 PowerBatch commands which will
  9. work only in a PowerBatch source  file (they will not execute
  10. in a standard DOS batch  file).  Any valid executable command
  11. (.EXE &  .COM) as well as  any of the DOS  intrinsic commands
  12. are  valid  within  a  PowerBatch source  file  and  will  be
  13. "compiled".  These .EXE, .COM and DOS intrinsic commands will
  14. be executed via a shell and  the PowerBatch .EXE program will
  15. continue execution with the next compiled statement following
  16. the shelled  command.  There  are two  main modules  supplied
  17. with PowerBatch; 1)POWERMAK.EXE and 2)SMLMODEL.MDL.  PowerMak
  18. reads,  parses  the  source file,  and  compiles  the  source
  19. extracting  routines   from  SmlModel.    The  result   is  a
  20. completely  standalone   .EXE  file  that   executes  without
  21. SmlModel or PowerMak.   The increase in speed  comes from the
  22. use  of the  PowerBatch commands  as the  DOS and  executable
  23. modules will not be executed any faster.  Most notable is the
  24. increase  in   speed  dealing   with  screen   writes.   Many
  25. capabilities are provided in  PowerBatch commands that simply
  26. are not available with standard DOS commands.
  27.  
  28.                         Why Use PowerBatch
  29.  
  30. There  are four major reasons for using a compiled PowerBatch
  31. program:
  32.      1)  The resulting program will almost certainly  execute
  33.         considerably  faster.   While it might be possible to
  34.         construct a compiled PowerBatch program that does not
  35.         execute faster, it would have to consist entirely  of
  36.         pre- existing executable modules.
  37.      2) PowerBatch  commands  provide a considerable increase
  38.         in flexibility  and  power  over  conventional  batch
  39.         files.
  40.      3) PowerBatch programs cannot be changed without  making
  41.         machine  code  modifications.   This means additional
  42.         security for distributed batch files.
  43.      4)  PowerBatch programs can be created quickly  for  the
  44.         PowerBatch command set is a very high level language.
  45.  
  46. PowerBatch commands fall into 5 classes of commands;
  47.      1) Commands  which  provide  systems information.  These
  48.         commands provide  the  current  color  settings,  the
  49.         current   date,  the  current  time,  check  for  the
  50.         existance of a valid drive letter, and commands which
  51.         check for the existance of a directory or a file.
  52.     2)  Commands  which  control  the  flow  of   the   batch
  53.         program.  Execute  different  portions  of  the batch
  54.         program  based  on  existance  or  non-existance   of
  55.         directories  or  files.   Compare the contents of one
  56.         variable with the contents of another variable  or  a
  57.         constant  and execute different portions of the batch
  58.         program based on the results of the compare.
  59.     3)  Commands which control the way text is printed on the
  60.         screen.  Change any portion  of  the  screen  to  any
  61.         valid  screen  color, cause a message to blink on the
  62.         screen, or highlight a message in reverse video.
  63.     4)  Commands which provide string manipulation.  Change a
  64.         string to all upper case characters, or all lower case
  65.         characters.  Extract a portion of a string such as the
  66.         first three characters or the  last  four  characters.
  67.         Build  a  new  string  from  two  existing  strings by
  68.         concatenation of the two strings.
  69.    5)  Commands which deal with screen writing and input from
  70.        the keyboard.  These commands are the  main  power  in
  71.        the  PowerBatch system.  Directly address any position
  72.        on the screen and move the cursor to that position  to
  73.        read or write text.  Automatically center a message or
  74.        title  on any line.  Draw boxes around portions of the
  75.        screen to enhance screen appearance.   Read  a  single
  76.        key  from  the  keyboard, read the response to a query
  77.        that only accepts a yes or no response, read a  string
  78.        of  characters  from  the  keyboard  with  a specified
  79.        maximum  length,  and  read  keys  from  the  keyboard
  80.        automatically changing the characters to upper case.
  81.  
  82.  
  83. _____________________________________________________________
  84.  
  85. (SDA format (c)Copyright 1990 The SDN Project - SDNet/Works!)
  86. _____________________________________________________________
  87. _____________________________________________________________
  88.  
  89.  
  90.