home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / bill21.zip / COMMTEST.BAT < prev    next >
DOS Batch File  |  1989-09-28  |  3KB  |  85 lines

  1. echo off
  2. cls
  3. echo ***********************************************************
  4. echo ***  You can use Port Finder in a batch file to deter-  ***
  5. echo ***  mine the number of COM ports that are installed in ***
  6. echo ***  any IBM compatible computer.  Press any key now to ***
  7. echo ***  see how many COM ports your computer has.......... ***
  8. echo ***********************************************************
  9. echo .
  10. pause
  11. cls
  12. pf %1 %2 >nul
  13. echo ***********************************************************
  14. if errorlevel 15 goto 15port
  15. if errorlevel 14 goto 14port
  16. if errorlevel 13 goto 13port
  17. if errorlevel 12 goto 12port
  18. if errorlevel 11 goto 11port
  19. if errorlevel 10 goto 10port
  20. if errorlevel 9 goto 9port
  21. if errorlevel 8 goto 8port
  22. if errorlevel 7 goto 7port
  23. if errorlevel 6 goto 6port
  24. if errorlevel 5 goto 5port
  25. if errorlevel 4 goto 4port
  26. if errorlevel 3 goto 3port
  27. if errorlevel 2 goto 2port
  28. if errorlevel 1 goto 1port
  29. if errorlevel 0 goto 0port
  30. :0port
  31. echo ************* You have no COM ports! **********************
  32. goto endall
  33. :1port
  34. echo ************* You have COM port 1 *************************
  35. goto endall
  36. :2port
  37. echo ************* You have COM port 2 *************************
  38. goto endall
  39. :3port
  40. echo ************* You have COM ports 1 and 2 ******************
  41. goto endall
  42. :4port
  43. echo ************* You have COM port 3 *************************
  44. goto endall
  45. :5port
  46. echo ************* You have COM ports 1 and 3 ******************
  47. goto endall
  48. :6port
  49. echo ************* You have COM ports 2 and 3 ******************
  50. goto endall
  51. :7port
  52. echo ************* You have COM ports 1, 2, and 3 **************
  53. goto endall
  54. :8port
  55. echo ************* You have COM port 4 *************************
  56. goto endall
  57. :9port
  58. echo ************* You have COM ports 1 and 4 ******************
  59. goto endall
  60. :10port
  61. echo ************* You have COM ports 2 and 4 ******************
  62. goto endall
  63. :11port
  64. echo ************* You have COM ports 1, 2, and 4 **************
  65. goto endall
  66. :12port
  67. echo ************* You have COM ports 3 and 4 ******************
  68. goto endall
  69. :13port
  70. echo ************* You have COM ports 1, 3, and 4 **************
  71. goto endall
  72. :14port
  73. echo ************* You have COM ports 2, 3, and 4 **************
  74. goto endall
  75. :15port
  76. echo ************* You have COM ports 1, 2, 3, and 4 ***********
  77. :endall
  78. echo ***********************************************************
  79. echo .
  80. echo ***********************************************************
  81. echo ** To see how this batch file works, enter the following **
  82. echo ** command at the DOS prompt: "type commtest.bat |more"  **
  83. echo ** or to print it out enter: "type commtest.bat >prn".   **
  84. echo **      Thank You for using Port Finder ! ! ! ! !        **
  85. echo ***********************************************************