home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MXP001.ZIP / DLOAD.CMD next >
OS/2 REXX Batch file  |  1990-11-28  |  2KB  |  74 lines

  1. @echo off
  2.  
  3. rem
  4. rem  This batch file example is based on the external file transfer
  5. rem  program M2Zmodem by Mikael Wahlgren.
  6. rem
  7. rem
  8. rem
  9. rem
  10. rem   Parameters passed on to this Batch file by MX:
  11. rem
  12. rem     %1      Hotkey command used to select the desired file
  13. rem             transfer protocol.
  14. rem
  15. rem     %2      Full path and file name of the compressed mail bundle
  16. rem             to be downloaded.
  17. rem
  18. rem     %3      Shared comm port 'handle' used by Maximus and MX.
  19. rem
  20. rem     %4      baud rate. This is normally NOT needed for most external
  21. rem             file transfer programs. Most file transfer program would
  22. rem             take the current port speed.
  23. rem
  24. rem
  25. rem   NOTE!!!!!!!!!!
  26. rem
  27. rem   * Take out ALL the M2Zmodem '-h' options from below if you are NOT
  28. rem     running your modem with CTS/RTS flow control. The '-h' option
  29. rem     is usually only required if you run your modem at a locked baud.
  30. rem
  31. rem   * Don't forget to set your DPATH and PATH correctly as stated in
  32. rem     the documentation of M2Zmodem.
  33. rem
  34.  
  35. if "%1" == "X" goto DL_XMODEM
  36. if "%1" == "Y" goto DL_YMODEM
  37. if "%1" == "G" goto DL_YMODG
  38. if "%1" == "1" goto DL_XMOD1K
  39. if "%1" == "Z" goto DL_ZMODEM
  40.  
  41. goto END
  42.  
  43. :DL_XMODEM
  44.  
  45.    m2zmodem.exe -prot XMODEM -u %3 -h -n -prty 0 -s %2
  46.    goto END
  47.  
  48.  
  49. :DL_YMODEM
  50.  
  51.    m2zmodem.exe -prot YMODEM -u %3 -h -n -prty 0 -s %2
  52.    goto END
  53.  
  54.  
  55. :DL_YMODG
  56.  
  57.    m2zmodem.exe -prot YMODEMG -u %3 -h -n -prty 0 -s %2
  58.    goto END
  59.  
  60.  
  61. :DL_XMOD1K
  62.  
  63.    m2zmodem.exe -prot XMODEM1k -u %3 -h -n -prty 0 -s %2
  64.    goto END
  65.  
  66.  
  67. :DL_ZMODEM
  68.  
  69.    m2zmodem.exe -prot ZMODEM -u %3 -h -n -prty 0 -s %2
  70.    goto END
  71.  
  72.  
  73. :END
  74.