home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / SLIP192.ZIP / SLIP.BAT < prev    next >
DOS Batch File  |  1993-06-02  |  2KB  |  116 lines

  1. echo off
  2. cls
  3. goto start
  4.  
  5. rem This batch file allows you to easily select a network services.
  6.  
  7. :start
  8.  
  9. set spath=c:\slip\
  10. set gpath=c:\gopher\
  11. set ppath=c:\popmail\
  12. set tpath=c:\ncsa\
  13.  
  14. if %1. == ?.        goto list
  15. if %1. == .         goto list
  16. if %1. == help.     goto list
  17. if %1. == setup.    goto setup
  18. if %1. == hangup.   goto forceH
  19. if %1. == dial.     goto forceD
  20. if %1. == exit.     goto hangup
  21. if %1. == quit.     goto hangup
  22. if %1. == popmail.  goto needsslip
  23. if %1. == gopher.   goto needsslip
  24. if %1. == telnet.   goto needsslip
  25. if %1. == ftp.      goto needsslip
  26. if %1. == HELP.     goto list
  27. if %1. == SETUP.    goto setup
  28. if %1. == HANGUP.   goto forceH
  29. if %1. == DIAL.     goto forceD
  30. if %1. == EXIT.     goto hangup
  31. if %1. == QUIT.     goto hangup
  32. if %1. == POPMAIL.  goto needsslip
  33. if %1. == GOPHER.   goto needsslip
  34. if %1. == TELNET.   goto needsslip
  35. if %1. == FTP.      goto needsslip
  36. goto bogus
  37. goto end
  38.  
  39. :needsslip
  40. %spath%umslip >nul
  41. %spath%phone dial
  42.  
  43. if errorlevel 1 goto nogo
  44. if %1. == popmail. goto pop
  45. if %1. == gopher.  goto gop
  46. if %1. == telnet.  goto tel
  47. if %1. == ftp.     goto ftp
  48. if %1. == POPMAIL. goto pop
  49. if %1. == GOPHER.  goto gop
  50. if %1. == TELNET.  goto tel
  51. if %1. == FTP.     goto ftp
  52. goto bogus
  53.  
  54.  
  55. :hangup
  56. %spath%phone hangup
  57. termin 0x60 >nul
  58. goto end
  59.  
  60. :forceH
  61. %spath%umslip >nul
  62. %spath%phone force hangup
  63. goto end
  64.  
  65. :forceD
  66. %spath%umslip >nul
  67. %spath%phone force dial
  68. goto end
  69.  
  70. :nogo
  71. echo Dialing error! No SLIP connection.
  72. goto end
  73.  
  74. :pop
  75. %ppath%\popmail -path %ppath%
  76. goto list
  77.  
  78. :gop
  79. %gpath%\gopher
  80. goto list
  81.  
  82. :tel
  83. %tpath%\telbin -h %tpath%\config.tel %2 %3 %4 %5 %6
  84. goto list
  85.  
  86. :ftp
  87. %tpath%\ftpbin -h %tpath%\config.tel %2 %3 %4 %5 %6 %7 %8 %9
  88. goto list
  89.  
  90. :setup
  91. %spath%umslip >nul
  92. %spath%phone setup
  93. goto list
  94.  
  95. :bogus
  96. echo %1 is not a valid command. Try again.
  97. echo.
  98.  
  99. :list
  100. echo                    SLIP 1.9.3
  101. echo.
  102. echo Please enter one of the following in LOWER case:
  103. echo ------------------------------------------------
  104. echo slip setup           to change phone number, modem settings, etc.
  105. echo.
  106. echo slip                 to get help
  107. echo slip popmail
  108. echo slip gopher
  109. echo slip telnet
  110. echo slip ftp
  111. echo.
  112. echo slip quit            to hang up the phone and unload packet driver
  113. echo.
  114.  
  115. :end
  116.