home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Gamer UK 38
/
PCGAMER38.bin
/
wireplay
/
games.exe
/
WPCOMMIT.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-08-06
|
2KB
|
54 lines
@echo off
rem WireComm.bat - Write a COMMIT.DAT file and launch COMMIT under Wireplay
rem Debugging support, set to 'echo' if your want any..
rem Check arguments (launchname & number of players)
if %1x == x goto error
if %2x == x goto error
rem Launching %1 on with %2 players
rem Backup original file
if not exist COMMIT.DAT goto build
if exist COMMIT.BAK goto build
rem Moving original file
ren COMMIT.DAT COMMIT.BAK
rem Now build the Wireplay version
:build
rem Building new file
echo [Commit]>COMMIT.DAT
echo ; COMMIT Data File>>COMMIT.DAT
echo ; This file has been automatically generated by BT Wireplay>>COMMIT.DAT
echo ; DO NOT EDIT IT!>>COMMIT.DAT
echo ; Your original COMMIT Data File has been saved as COMMIT.BAK>>COMMIT.DAT
echo ;>>COMMIT.DAT
echo COMMTYPE=3>>COMMIT.DAT
echo NUMPLAYERS=%2>>COMMIT.DAT
echo PAUSE=0>>COMMIT.DAT
echo VECTOR=~>>COMMIT.DAT
echo SOCKETNUMBER=34889>>COMMIT.DAT
echo LAUNCHNAME="%1">>COMMIT.DAT
echo CONNECTTYPE=2>>COMMIT.DAT
echo SHOWSTATS=0>>COMMIT.DAT
rem Launch COMMIT
rem Launching COMMIT
COMMIT.EXE /f4 %3 %4 %5 %6 %7 %8 %9
rem Replace original file
del COMMIT.DAT
if not exist COMMIT.BAK goto end
rem Replacing original file
ren COMMIT.BAK COMMIT.DAT
goto end
:error
cls
echo **** ERROR! WireComm.bat has been invoked with invalid arguments. ****
echo **** Please check that your Wireplay game setup is correct. ****
echo **** Press any key to return to the Locker Room.. ****
pause >nul
:end