home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
os2
/
bbss10b2.zip
/
DOOR.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-02-28
|
1KB
|
52 lines
@ECHO OFF
GOTO START
|
| Here you should put commands to start doors!
|
| %1 & %2 - Node number
| %3 - Com port
| %4 - Port speed (/100)
| %5 - Port base address
| %6 - Port irq vector
| %7 - Door name/number
| %8 - Area-code of area which door belong to
|
| Example-call: DOOR.CMD 3 003 1 192 03F8 3 1 MAIN
|
| Copy the NODESTAT file from your RAM-DISK to your MAIN directory.
| Run STATCONV program to support PCBoard doors.
|
:START
COPY F:\NODESTAT MAIN >NUL
UTILCOLL/STATCONV %1 >NUL
COPY MAIN\PCBOARD.* TEMP.%2 >NUL
DEL MAIN\PCBOARD.* >NUL
IF "%8"=="MAIN" GOTO MAIN_DOORS
GOTO END
|
| Each area must have its own IF section like the one below.
|
:MAIN_DOORS
IF "%/"=="1" GOTO MAIN1
GOTO END
|
| From here you write the command needed to start your doors.
|
:MAIN1
KING.EXE %3 %4
GOTO END
|
| All doors should "GOTO END" after exiting
|
| Restore current-drive/directory
| Delete STATCONV files
|
:END
D:
CD\"B&BSYS"
DEL TEMP.00%1\PCBOARD.*
DEL TEMP.00%1\USERS
CLS