home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Aktief 1995 #3 / CDA3.iso / comm / ts3m.zip / TSBASIC.BAT < prev    next >
DOS Batch File  |  1995-03-03  |  1KB  |  78 lines

  1. @echo off
  2. rem Mon  12-12-1994  15:58:51
  3. rem This batch file is designed to enable only very basic features
  4. rem in Teleshare.  A useful example would be using parts of Teleshare
  5. rem with telix, procomm, ...
  6. :start
  7. rem you could add "Hangup" for hanging up - ensure the com port is correct tho.
  8. mnu menu "t:Main Menu" "Dialer" "Host" "Remote" "Setup" "Manuals" "Unload" "Quit" %1
  9. if errorlevel == 7 goto :end
  10. REM if errorlevel == 7 goto :hangup
  11. if errorlevel == 6 goto :unload
  12. if errorlevel == 5 goto :help
  13. if errorlevel == 4 goto :setup
  14. if errorlevel == 3 goto :remote
  15. if errorlevel == 2 goto :host
  16. if errorlevel == 1 goto :dial
  17. goto :end
  18.  
  19. :dial
  20. CLS
  21. echo .
  22. ECHO  Substitute your comm's software here.
  23. ECHO  one example would be: scomm -d
  24. echo  another would use telefile
  25. echo .
  26. echo  Telling telix to run
  27. telix
  28. pause
  29. goto :start
  30.  
  31. rem a basic hangup using DTR and command line redirection
  32. :hangup
  33. cls
  34. \tele\dtr COM1: off
  35. delay 1
  36. echo ath0 >COM1
  37. delay 1
  38. rem pause
  39. goto :start
  40.  
  41. :host
  42. rem mapmem
  43. rem tshost
  44. cls
  45. tsh
  46. pause
  47. goto :start
  48.  
  49. :remote
  50. rem mapmem
  51. rem tsrem
  52. cls
  53. tsr
  54. pause
  55. goto :start
  56.  
  57. :setup
  58. cls
  59. tssetup
  60. rem pause
  61. goto :start
  62.  
  63. :help
  64. mnu -readme *.txt
  65. goto :start
  66.  
  67. :unload
  68. cls
  69. echo  Telling both tsh and tsr to unload from ram. ...
  70. tsh u
  71. tsr u
  72. pause
  73. goto :start
  74.  
  75.  
  76. :end
  77. cls
  78.