home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boink! 1995 May/June
/
Image.bin
/
spiele
/
3dspiel
/
dummtool
/
doomco.bat
< prev
next >
Wrap
DOS Batch File
|
1994-04-15
|
1KB
|
56 lines
@ECHO OFF
REM By Fred Hennige 4/10/94 (74247,716)
REM Thanks to Cris Williams (75300,2704)
REM
REM DOOMCOM.BAT starts raw communications for modem-to-modem games. It
REM bypasses the SERSETUP program.
REM
REM Type DOOMCOM c ####### to initiate a call for a modem-to-modem
REM game (where ####### is another player's the phone #). Then follow the
REM prompts.
REM
REM Type DOOMCOM r to receive a call for a modem-to-modem game. Then
REM follow the prompts.
REM
REM This batch file assumes that you are using COM2 for your modem. Make
REM changes to all references to the appropriate COM port if necessary.
IF %1x == x goto noparm
MODE COM2:96,n,8,1,p
REM Change next line to match your modem's setup string for no compression
REM or error checking.
ECHO AT Z \N1 >COM2
IF %1 == r goto rcall
IF %1 == R goto rcall
IF %1 == c goto ccall
IF %1 == C goto ccall
GOTO invparm
:rcall
ECHO Wait for modem to receive call then
PAUSE
ECHO ATA >COM2
goto start
:ccall
IF %2x == x GOTO nonumber
ECHO Ready modem to dial.
PAUSE
REM The *70, in the next line disables call waiting. Remove it (*70,) if you want.
ECHO ATDT*70,%2 >COM2
GOTO start
:noparm
ECHO No parameters entered.
GOTO end
:nonumber
ECHO No phone number entered.
GOTO end
:invparm
ECHO Invalid command line parameter.
GOTO end
:start
ECHO Wait for connection then
PAUSE
REM If drive and/or directory are different, change the next two lines.
D:
CD \DOOM
SETUP
:end