home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR10 / GDSTERM.ZIP / ULDL.BAT < prev   
DOS Batch File  |  1993-03-26  |  3KB  |  94 lines

  1. @echo off
  2.  
  3. rem  This batch file is used in TTYHOST, GDSTERM and $MENUCOM.UTL
  4. rem  in order to set up for External Protocols such as Texas ZModem.
  5. rem  The important part is that it have a DOWNLOAD section and and
  6. rem  UPLOAD section.  Simply change the info in each section to whatever
  7. rem  protocol you use requires.  Also, if you rename this file, make sure
  8. rem  that you change the name in the .CFG files for TTYHOST,GDSTERM and
  9. rem  $MENUCOM.CFG.   NOTE : See TXZM.DOC for info on locking the baud rate.
  10. rem  ALSO, You MUST Define PROTOCOL?=PROTOCOL in your CFG file the
  11. rem  programs WILL NOT output to this file.
  12. rem           Example : PROTOCOL1=Texas ~Z~Modem
  13. rem                                 ^ title on menu. '~'Z is HIGHLITED !!
  14.  
  15. rem  varibles output by GDSTERM, TTYHOST and $MENUCOM
  16. rem  %1 = A WORD : ONE,TWO,THREE,FOUR,FIVE representing one of the five
  17. rem       possible external protocols that you can use.
  18. rem  %2 = THE WORD : UPLOAD OR DOWNLOAD
  19. rem  %3 = PORT #
  20. rem  %4 = CURRENT BAUD RATE
  21. rem  %5 = CURRENT DOWNLOAD DIRECTORY ..  may not be needed but here it is.
  22. rem  %6 = FILENAME STRING1 .. MAY CONTAIN SEVERAL FILES OR WILDCARDS
  23. rem  %7 = FILENAME STRING2 .. MAY CONTAIN SEVERAL FILES OR WILDCARDS
  24. rem  %8 = FILENAME STRING3 .. MAY CONTAIN SEVERAL FILES OR WILDCARDS
  25. rem  %9 = FILENAME STRING4 .. MAY CONTAIN SEVERAL FILES OR WILDCARDS
  26.  
  27. IF "%1" == "" GOTO DONE                 ;protocol to use
  28. IF "%2" == "" GOTO DONE                 ;upload or download
  29. IF "%3" == "" GOTO DONE                 ;port #
  30. IF "%2"=="UPLOAD" GOTO UPLOAD
  31. IF "%2"=="DOWNLOAD" GOTO DOWNLOAD
  32.  
  33. GOTO DONE
  34.  
  35. :UPLOAD
  36.  
  37.  IF "%6" == "" GOTO DONE    ; check for filename to upload
  38.  
  39.  REM now we select one of the five protocols
  40.  IF "%1" =="ONE" GOTO UP_ONE
  41.  IF "%1" =="TWO" GOTO UP_TWO
  42.  IF "%1" =="THREE" GOTO UP_THREE
  43.  IF "%1" =="FOUR" GOTO UP_FOUR
  44.  IF "%1" =="FIVE" GOTO UP_FIVE
  45.  GOTO DONE
  46.  
  47.  : UP_ONE
  48.    rem  insert upload commands for protocol #1
  49.    \modem\txzm com%3 -l%4 -h -p -s %6 %7 %8 %9
  50.    GOTO DONE
  51.  : UP_TWO
  52.    rem  insert upload commands for protocol #2
  53.    \modem\hyperp PORT:2 HANDSHAKE:RTS/CTS COMPRESS:ON SEND %6 %7 %8 %9
  54.    GOTO DONE
  55.  : UP_THREE
  56.    rem  insert upload commands for protocol #3
  57.    GOTO DONE
  58.  : UP_FOUR
  59.    rem  insert upload commands for protocol #4
  60.    GOTO DONE
  61.  : UP_FIVE
  62.    rem  insert upload commands for protocol #5
  63.    GOTO DONE
  64.  
  65. :DOWNLOAD
  66.  
  67.  IF "%1" =="ONE" GOTO DN_ONE
  68.  IF "%1" =="TWO" GOTO DN_TWO
  69.  IF "%1" =="THREE" GOTO DN_THREE
  70.  IF "%1" =="FOUR" GOTO DN_FOUR
  71.  IF "%1" =="FIVE" GOTO DN_FIVE
  72.  GOTO DONE
  73.  
  74.  : DN_ONE
  75.    rem  insert download commands for protocol #1
  76.    \modem\txzm com%3 -l%4 -h -e3 -r %5
  77.    GOTO DONE
  78.  : DN_TWO
  79.    rem  insert download commands for protocol #2
  80.    \modem\hyperp PORT:2 OVERWRITE:ON HANDSHAKE:RTS/CTS COMPRESS:ON RECEIVE
  81.    GOTO DONE
  82.  : DN_THREE
  83.    rem  insert download commands for protocol #3
  84.    GOTO DONE
  85.  : DN_FOUR
  86.    rem  insert download commands for protocol #4
  87.    GOTO DONE
  88.  : DN_FIVE
  89.    rem  insert download commands for protocol #5
  90.    GOTO DONE
  91.  
  92.  
  93. :DONE
  94. CANCEL              ; That's ALL Folks !!