home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Aktief 1995 #3 / CDA3.iso / comm / ts3m.zip / SUBSTIT.BAT < prev    next >
DOS Batch File  |  1994-12-22  |  2KB  |  45 lines

  1. echo off
  2. rem this batch file uses the included SUBST.EXE utility.
  3. rem just type in "SUBST" to get its help.
  4. echo ════════════════════════════════════════════════════════════════════════
  5. echo the baud should be %2
  6. echo the port should be %1
  7. echo ════════════════════════════════════════════════════════════════════════
  8. rem pause
  9. if "%1" == "1"  goto one
  10. if "%1" == "2"  goto two
  11. cls
  12. echo .
  13. echo . SUBSTIT.BAT changes COM1 to COM2, or vice versa, in the local batch
  14. echo . files.  You should include the COM port number:  1 or 2
  15. echo .
  16. pause
  17. goto end
  18. :one
  19. subst -i -r COM2 COM1 hangup.bat callwait.bat mnuhost.bat 
  20. subst -i -r COM2 COM1 setmode.bat mremote.bat tsbasic.bat
  21. subst -r  /2 /1 msetup.bat
  22. goto baud
  23.  
  24. :two
  25. subst -i -r COM1 COM2 hangup.bat callwait.bat mnuhost.bat
  26. subst -i -r COM1 COM2 setmode.bat mremote.bat tsbasic.bat
  27. subst -r  /1 /2 msetup.bat
  28. rem Running subst on all of the .bat files changes this one.
  29. rem subst -i -r COM1 COM2 *.bat
  30. goto baud
  31.  
  32. :baud
  33. echo .
  34. echo .  The baud should be %2
  35. echo .  I am unable to substitute the new value because I don't know the
  36. echo .  current value.  The batch files you MIGHT use that contain baud
  37. echo .  settings are:  MAKECALL.BAT SETMODE.BAT CALLWAIT.BAT.
  38. echo .
  39. echo .  Look for MODE=9600 (or some number) and change the number to %2
  40. echo .  Run the local SUBST.EXE to see how it can help you make the changes.
  41. echo .  For example "SUBST -r 9600 14400 that.bat" to go from 9600 to 14400.
  42. echo .
  43. PAUSE
  44. :end
  45.