home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBSUTIL1
/
DPARM12.ZIP
/
DOORPARM.DOC
< prev
next >
Wrap
Text File
|
1992-12-06
|
3KB
|
59 lines
*****************************************************************************
D O O R P A R M v1.2 12-06-92
Copyright 1992, Doug McClellan
*****************************************************************************
DOORPARM.COM reads data from the BBS dropfile DOOR.SYS and extracts ten
parameters; comport, baud rate, first name, last name, voice phone, data
phone, security level, minutes remaining, color(GR,NG,7E) and MNP(y/n).
DOORPARM.COM then passes these parameters to a batch file you define, via
PASSPARM.BAT. Here's an abbreviated example:
DOORPARM.COM target.bat ->> command line with your target batch file
PASSPARM.BAT ->> contents: "target.bat <comport> <baud>..."
PASSPARM.BAT is created by DOORPARM.COM, and must always be called after
DOORPARM.COM in a batch file. PASSPARM.BAT calls TARGET.BAT, and passes the
extracted variables from DOOR.SYS to DOS replacement variables in TARGET.BAT.
The DOS command SHIFT is necessary in TARGET.BAT to access the tenth parameter
(MNP), as DOS currently only supports nine active replacement variables in a
batch file. A more complete application would look like this:
@echo off
if exist passparm.bat erase passparm.bat
c:\wc30\utils\doorparm c:\wc30\show-me.bat
if exist passparm.bat passparm.bat
PASSPARM.BAT executes SHOW-ME.BAT, passing the ten parameters in its command
line. After successfully executing DOORPARM.COM, you can view the contents of
PASSPARM.BAT to see how it works. SHOW-ME.BAT (supplied) displays the para-
meters passed from PASSPARM.BAT, and provides an example on how to access the
10th replacement variable.
Notes:
"Full Name" in DOOR.SYS is passed as two parameters; First Name and Last Name.
Empty phone number strings are represented as "N/A" by doorparm. Make sure
DOOR.SYS is present in the current directory. Parameters are passed to your
batch file in the following order;
1) com port 2) baud
3) first name 4) last name
5) voice 6) modem
7) security level 8) minutes remaining
9) color spec 10) mnp
Call my BBS if you have problems or suggestions;
CloudBase! (503) 744-0668 : 24 hours, HST-DS, fido 1:152/56.
(Tell me if you're a visiting sysop, and I'll provide appropriate access).
If you find this program useful, a $5 encouragement would be appreciated:
Doug McClellan
814 N Cloverleaf Lp
Springfield, OR 97477
To extract parameters from USERINFO.DAT, download UPARM11.ZIP. You can find
this on either the MSI support board, Charlatan's Cabin, or my own BBS.
*********************************( eof )*********************************