home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / WA2HINTS.ZIP / RA2_ZLAB.ARJ / TEST.BAT < prev    next >
DOS Batch File  |  1993-01-08  |  2KB  |  73 lines

  1. @ECHO OFF
  2.  
  3. REM Tidy up and then do the conversion using Doormaster 5.3.2
  4. REM DM is using a locked baud rate of 38400 here.
  5.  
  6.    del caller.
  7.  
  8. REM use the below line if a full pcboard.dat resides in the node dir
  9. REM (locked baud rate ony!!!).
  10.   dm /f=RA /t=PCB14C /N%1 /LB=38400
  11.  
  12. REM use the below line if you are using pad.* to make a pcboard.dat
  13.  
  14. REM   dm /f=RA /t=PCB14 /N=%1 /LB=38400
  15.  
  16. REM pad out pcboard.dat to correct length using correct pad.* file
  17. REM then tidy up afterwards. REM these lines out if you are using
  18. REM the PCB14C option above.
  19.  
  20. REM   ren pcboard.dat pcb.dat
  21. REM   copy pcb.dat+d:\zlab\pad.%3 pcboard.dat
  22. REM   del pcb.dat
  23.  
  24. REM zlab expects a file called caller, so we give it one.
  25.  
  26.    rem>caller
  27.  
  28. REM test file using ZipLab 1.9c
  29.  
  30.    d:\zlab\zlab.exe %2 d:\ra\node%1 d:\zlab
  31.  
  32.  
  33. REM Check to see if the file passed or failed then deal with it.
  34.  
  35.    if exist d:\ra\node%1\pcbfail.txt goto FAIL
  36.  
  37. goto OKAY
  38.  
  39. REM Here we deal with the file if it failed.
  40.  
  41. :FAIL
  42.  
  43. REM log the reason for failure.
  44.  
  45.    copy d:\zlab\zlab.log+caller d:\zlab\zlab.log
  46.  
  47. REM inform the user why it failed by copying reason for failure to a
  48. REM textfile displayed by RA at the prompt (requies you to edit the
  49. REM language file line 637).
  50.  
  51.    copy caller d:\ra\txtfiles\fail.asc
  52.  
  53. REM delete the flagfile created by ziplab.
  54.  
  55.    del pcbfail.txt
  56.  
  57. REM ZipLab will have moved the file so we have to move the file back
  58. REM to ra's upload area so ra can deal with it.
  59.  
  60.    c:\utils\move.exe d:\upload\temp\*.* d:\upload
  61.  
  62. REM tell ra the filescan has failed by setting the errorlevel to 1.
  63. REM Then exiting.
  64.  
  65.    c:\utils\errlvl.exe 1
  66.    exit
  67.  
  68. REM If the file passed  we just exit cleanly.
  69.  
  70. :OKAY
  71.  
  72.   exit
  73.