home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / _bbs / pcbtool / doit.bat < prev    next >
Encoding:
DOS Batch File  |  1994-01-29  |  785 b   |  25 lines

  1. rem %1 == disc directory
  2. rem %indexf% == 00_index.txt
  3. if exist %cdrom%%1\%indexf% goto ok
  4. echo no such file: %cdrom%%1\%indexf% >> logfile
  5. goto end
  6. :ok
  7. if exist %output%\dir%2 goto bad
  8. goto ok2
  9. :bad
  10. echo duplicate output file: %output%\dir%2 >> logfile
  11. goto end
  12. :ok2
  13. type %cdrom%\_bbs\pcbtool\header1 > %output%\dir%2
  14. %cdrom%\_bbs\get_area other 0 %1 < \_bbs\dirs.txt >> %output%\dir%2
  15. echo path: %1 >> %output%\dir%2
  16. type %cdrom%\_bbs\pcbtool\header2 >> %output%\dir%2
  17. rem cd %cdrom%%1
  18. rem %cdrom%\_bbs\c %in_type% pcb %cdrom%%1 < %cdrom%%1\%indexf% >> %output%\dir%2
  19. rem cd %cdrom%\_bbs\pcbtool
  20. cd %cdrom%%1
  21. %cdrom%\_bbs\c %in_type% pcb %cdrom%. < %cdrom%%indexf% >> %output%\dir%2
  22. cd %cdrom%\_bbs\pcbtool
  23. dirlst %output%\dir%2 %cdrom%%1\ %2 >> dirs.lst
  24. :end
  25.