home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / pb920430.zip / RUNPB.BAT < prev    next >
DOS Batch File  |  1992-04-30  |  898b  |  26 lines

  1. REM This is a sample RUNPB.BAT file for one-pass station automation. First
  2. REM it runs pg as many times as necessary to upload all of your .OUT files. 
  3. REM Then it runs PB for the pass. If PB exits without error then the
  4. REM POSTPASS.BAT is executed and renamed (to make way for the next pass).
  5. REM
  6. REM Keeps looping to upload until all messages are uploaded.
  7. REM Remember to check for partially uploaded files, too.
  8. :upload 
  9. if exist (*.out) pg -u -q
  10. if exist (*.pul) pg -u -q
  11. if exist (*.pul) goto :upload
  12. if exist (*.out) goto :upload
  13. :download
  14. pb
  15. REM
  16. REM PB will return an error level if you type X rather than Q.
  17. REM You can use this to skip your post pass processing.
  18. if errorlevel 1 goto end
  19. call postpass.bat
  20. del postpass.bak
  21. ren postpass.bat postpass.bak
  22. :end
  23. REM We do not use these batch files at UoS, so any comments and enhancements
  24. REM would be appreciated.
  25.  
  26.