home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / bbsx1.zip / FTX.BAT < prev    next >
DOS Batch File  |  1988-12-26  |  968b  |  49 lines

  1. echo off
  2. goto top
  3.  
  4. Rich Levin's BBSXpress (tm)
  5. FTX.BAT
  6. Copyright (c) 1988 Richard B. Levin
  7. All Rights Reserved
  8.  
  9. Revised December 26, 1988
  10.  
  11. :top
  12.    if %4 == b goto dsz
  13.    if %4 == b-k goto dsz
  14.    if %4 == x goto dsz
  15.    if %4 == x-k goto dsz
  16.    if %4 == z goto dsz
  17.    goto s_err
  18.  
  19. :dsz
  20.    if %3 == r goto dsz_r
  21.    if %3 == s goto dsz_s
  22.    goto xit
  23.       
  24.         :dsz_r
  25.            dsz port %1 speed %2 r%4 %5
  26.            if errorlevel 1 goto r_err
  27.            if not exist %5 goto r_err
  28.            goto xit
  29.  
  30.         :dsz_s
  31.            dsz port %1 speed %2 s%4 %5
  32.            if errorlevel 1 goto s_err
  33.            goto xit
  34.  
  35. :r_err
  36.    rem failed receives/uploads branch here
  37.    rem change del %5 to ren %5 to save aborted uploads
  38.    if exist %5 del %5
  39.    if exist bbsx.tmp del bbsx.tmp
  40.    goto xit
  41.  
  42. :s_err
  43.    rem failed sends/downloads branch here
  44.    if exist bbsx.tmp del bbsx.tmp
  45.    goto xit
  46.  
  47. :xit
  48.    if exist *.$$$ del *.$$$
  49.