home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
sysutl
/
portfind.arc
/
COMMTEST.BAT
next >
Wrap
DOS Batch File
|
1988-08-25
|
2KB
|
67 lines
pf
@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
rem You have no com ports!
@goto endall
:1port
rem You have com port 1
@goto endall
:2port
rem You have com port 2
@goto endall
:3port
rem You have com ports 1 and 2
@goto endall
:4port
rem You have com port 3
@goto endall
:5port
rem You have com ports 1 and 3
@goto endall
:6port
rem You have com ports 2 and 3
@goto endall
:7port
rem You have com ports 1, 2, and 3
@goto endall
:8port
rem You have com port 4
@goto endall
:9port
rem You have com ports 1 and 4
@goto endall
:10port
rem You have com ports 2 and 4
@goto endall
:11port
rem You have com ports 1, 2, and 4
@goto endall
:12port
rem You have com ports 3 and 4
@goto endall
:13port
rem You have com ports 1, 3, and 4
@goto endall
:14port
rem You have com ports 2, 3, and 4
@goto endall
:15port
rem You have com ports 1, 2, 3, and 4
:endall
rem The error level test is over.