home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / JLUT531.ZIP / HLP.ZIP / GC.HLP < prev    next >
Text File  |  1994-05-11  |  3KB  |  84 lines

  1. ┌─────────────────────────────────────────────────────────────────────────────┐
  2. │ Option:  GC  GET COMMANDLINE FROM FILE......................................│
  3. └─────────────────────────────────────────────────────────────────────────────┘
  4.  
  5. Syntax
  6. ═══════════════════════════════════════════════════════════════════════════════
  7. JLUTIL /GC [Parameters] [-Switches]
  8. ═══════════════════════════════════════════════════════════════════════════════
  9.  
  10. Switch Description
  11. ═══════════════════════════════════════════════════════════════════════════════
  12. No Switches available at this time.
  13. ═══════════════════════════════════════════════════════════════════════════════
  14.  
  15. Param       Description
  16. ═══════════════════════════════════════════════════════════════════════════════
  17. FileName    Name of the File, which contains the commands.
  18. ═══════════════════════════════════════════════════════════════════════════════
  19.  
  20. Explanation
  21. ═══════════════════════════════════════════════════════════════════════════════
  22. Reads each line of the InputFile and handles the line as CommandLine.
  23. If you want to save time and i think most of us want to do this,
  24. you should think about using this option. Check how much faster it is
  25. to run your daily JL-Options with or without this trick.
  26.  
  27. You will be surpriced, how fast it is. And if you have ever thought:
  28. why does the JL's are needing so much time for loading, you must know
  29. the answer. It is this option.
  30.  
  31. If a error occurs during the use of GC, THE JL's quit. GC writes
  32. the number of the last scanned line of FileName into POS{GC}.@JL,
  33. which is located in the subdirectory WRK. So it is possible to run
  34. the complete FileName, if a error occurs during processing one line
  35. of FileName. All you have to do is, to look in your batch file, if
  36. POS{GC}.@JL exists. Look at the example below to get an impression,
  37. how you could make a loop in your batchfile.
  38.  
  39.            ┌─Example #1──────────────────────────────────┐
  40.            │ :GC                                         │
  41.            │ JLUTIL /GC DAILY.BEH                        │
  42.            │ IF EXIST %JLPATH%\WRK\POS{GC}.@JL GOTO :GC  │
  43.            └─────────────────────────────────────────────┘
  44.  
  45. It is not possible to use all options of THE JL's within GC. Specially
  46. the last commandline must not be a option, which doesn't display the
  47. sentence 'The program was xx.xx seconds active.'.
  48.  
  49. So it is better to setup a InputFile like this:
  50.  
  51. 001.BEH--------------
  52.  
  53. /MC
  54. /PM ~    -C
  55. /MO
  56. /IL P    -US
  57. /IL RSXD -USL7
  58.  
  59. ---------------------
  60.  
  61. and running JLUTIL /GC 001.BEH, than using a batch-file like this:
  62.  
  63. 001.BAT--------------
  64.  
  65. JLUTIL /MC
  66. JLUTIL /PM ~    -C
  67. JLUTIL /MO
  68. JLUTIL /IL P    -US
  69. JLUTIL /IL RSXD -USL7
  70.  
  71. ---------------------
  72.  
  73. and running 001.bat. Message understood ?
  74.  
  75.  
  76. ┌─Examples───────────────────────────────────────────────────────────────────┐
  77. └────────────────────────────────────────────────────────────────────────────┘
  78.  
  79. JLUTIL /GC MDRIV.BEH
  80. :GC
  81. JLUTIL /GC DAILY.BEH
  82. IF EXIST %JLPATH%\WRK\POS{GC}.@JL GOTO :GC
  83.  
  84.