home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / SHANS102.ZIP / ZMODEM.BAT < prev   
Encoding:
DOS Batch File  |  1995-11-05  |  882 b   |  45 lines

  1. @echo off
  2. rem *****
  3. rem
  4. rem    sample batch file for zmodem using
  5. rem   DSZ.
  6. rem
  7. rem     parameters passed = %1 port
  8. rem                         %2 baud
  9. rem                         %3 sz/rz
  10. rem                         %4 filename
  11. rem
  12. rem *****
  13.  
  14.  
  15. :: DSZ port %1 speed %2 D restrict p %3 %4
  16.  
  17.  
  18. :: The problem of other protocols not using sz/rz as the
  19. ::  function indicator can be got around by the following method.
  20. ::
  21.  
  22. rem **********
  23. rem
  24. rem  sample batch file for non-DSZ upload/download
  25. rem  protocols.  Replace SEND/RECEIVE parameters with
  26. rem  whatever command your protocol uses.
  27. rem
  28. rem **********
  29. rem
  30. rem
  31. rem  if "%3 " == "sz" goto :SEND
  32. rem  if "%3 " == "rz" goto :RECEIVE
  33. rem
  34. rem  :SEND
  35. rem      PROGRAM %1 %2 SEND %4
  36. rem      goto :END
  37. rem
  38. rem  :RECEIVE
  39. rem      PROGRAM %1 %2 RECEIVE %4
  40. rem      goto :END
  41. rem
  42. rem
  43. rem  :END
  44. rem
  45.