home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
DBASE
/
BILL21.ZIP
/
COMMTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-09-28
|
3KB
|
85 lines
echo off
cls
echo ***********************************************************
echo *** You can use Port Finder in a batch file to deter- ***
echo *** mine the number of COM ports that are installed in ***
echo *** any IBM compatible computer. Press any key now to ***
echo *** see how many COM ports your computer has.......... ***
echo ***********************************************************
echo .
pause
cls
pf %1 %2 >nul
echo ***********************************************************
if errorlevel 15 goto 15port
if errorlevel 14 goto 14port
if errorlevel 13 goto 13port
if errorlevel 12 goto 12port
if errorlevel 11 goto 11port
if errorlevel 10 goto 10port
if errorlevel 9 goto 9port
if errorlevel 8 goto 8port
if errorlevel 7 goto 7port
if errorlevel 6 goto 6port
if errorlevel 5 goto 5port
if errorlevel 4 goto 4port
if errorlevel 3 goto 3port
if errorlevel 2 goto 2port
if errorlevel 1 goto 1port
if errorlevel 0 goto 0port
:0port
echo ************* You have no COM ports! **********************
goto endall
:1port
echo ************* You have COM port 1 *************************
goto endall
:2port
echo ************* You have COM port 2 *************************
goto endall
:3port
echo ************* You have COM ports 1 and 2 ******************
goto endall
:4port
echo ************* You have COM port 3 *************************
goto endall
:5port
echo ************* You have COM ports 1 and 3 ******************
goto endall
:6port
echo ************* You have COM ports 2 and 3 ******************
goto endall
:7port
echo ************* You have COM ports 1, 2, and 3 **************
goto endall
:8port
echo ************* You have COM port 4 *************************
goto endall
:9port
echo ************* You have COM ports 1 and 4 ******************
goto endall
:10port
echo ************* You have COM ports 2 and 4 ******************
goto endall
:11port
echo ************* You have COM ports 1, 2, and 4 **************
goto endall
:12port
echo ************* You have COM ports 3 and 4 ******************
goto endall
:13port
echo ************* You have COM ports 1, 3, and 4 **************
goto endall
:14port
echo ************* You have COM ports 2, 3, and 4 **************
goto endall
:15port
echo ************* You have COM ports 1, 2, 3, and 4 ***********
:endall
echo ***********************************************************
echo .
echo ***********************************************************
echo ** To see how this batch file works, enter the following **
echo ** command at the DOS prompt: "type commtest.bat |more" **
echo ** or to print it out enter: "type commtest.bat >prn". **
echo ** Thank You for using Port Finder ! ! ! ! ! **
echo ***********************************************************