home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Aktief 1995 #3
/
CDA3.iso
/
comm
/
ts3m.zip
/
MNUHOST.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-03-03
|
1KB
|
74 lines
@echo off
rem
:start
rem 1 2 3 4 5 6 7
mnu menu "t:Host matters" "Run Host" "Wait for call" "Lock Wait" "Hangup" "Unload" "Help" "Exit" nc %1
if errorlevel == 7 goto :end
if errorlevel == 6 goto :help
if errorlevel == 5 goto :unload
if errorlevel == 4 goto :hangup
if errorlevel == 3 goto :waitlocked
if errorlevel == 2 goto :waitcall
if errorlevel == 1 goto :runhost
goto :end
:runhost
cls
tsh
pause
goto :start
:waitcall
cls
echo ATS0=1 going to COM 2 tells a modem on com port 1 to answer on the
echo first ring. Use ATS0=2 to answer on the second ring.
echo ATS0=0 tells the modem to never answer the phone.
echo ...
echo ATS0=1 > COM1
rem Using MNU's noburn screen saver. Use -Ppassword for password protection
mnuhost -noburn
rem or use delay as follows
rem DELAY -w -s -t
pause
goto :start
:waitlocked
cls
echo using the sample password REGISTER
pause
mnuhost -pREGISTER
rem pause
goto :start
:hangup
echo hanging up the phone on COM port 1
rem hangup
rem dtr COM1: off
rem echo ath0 >COM1
goto :start
:unload
tsh u
goto :start
:reset
rs232off
rem a surprising number of pcs 'go wonky' on the second and successive
rem uses per day.
rem 550reset to reset 16550x chips
550reset
goto :start
:porttest
portest
goto :start
:help
mnu -readme *.txt
goto :start
:end
tsmenu.bat
rem end