home *** CD-ROM | disk | FTP | other *** search
- CIDNPOP v2.0 (BETA) by Don Ludington
-
- CIDNPOP is a small utility that will extract the CID number from the Portal
- of Power log file, and allow you to pass it to your BBS program via the
- BBSBATCH.BAT file.
-
-
- SETTING UP YOUR SYSTEM TO USE CIDNPOP:
- --------------------------------------
-
- For CIDNPOP to operate, you will need to modify the batch file that controls
- Portal of Power when a human caller calls into the BBS. First of all, you
- must have Portal create a BBSBATCH.BAT file to load your BBS program. Then
- you must modify your POP.BAT file to run CIDNPOP before running BBSBATCH.BAT,
- like so:
-
- <Extracted from POP.BAT file>
-
- If ERRORLEVEL 201 Goto Human <-This is the errorlevel that I use.
-
- :Human
- CIDNPOP <- This runs CIDNPOP to add the CID # to BBSBATCH.BAT!
- BBSBATCH <- This runs BBSBATCH.BAT to load the BBS program.
- Goto Start <- Returns to load Portal if something goes wrong.
-
-
- Sample BBSBATCH.BAT file:
- ------------------------
-
- SPAWNBBS 14400 2 695 0 38400 ARQ
-
-
- (SPAWNBBS.BAT documentation explaining the Portal variables)
-
- ╒═══════════════════════════════════════════════════════════════════════╕
- │ SAMPLE SPAWNBBS.BAT │
- │ Portal Of Power 0.62Γ │
- ├───────────────────────────────────────────────────────────────────────┤
- │ THIS EXAMPLE IS BASED ON MAXIMUS │
- ╞═══════════════════════════════════════════════════════════════════════╡
- │ NOTE: To optimize the execution-speed of this batch-file, you can │
- │ remove all REM lines. (But do keep a backup of the original file for │
- │ future reference) │
- │ │
- │ Var Description Example │
- │ ───────────────────────────────────────────────────────────────────── │
- │ %1 Baud rate 9600 2400 │
- │ %2 Port number 1 1 │
- │ %3 Time to next event (min) 60 40 │
- │ %4 Task number 0 0 │
- │ %5 DTE Speed 19200 2400 │
- │ %6 Rest of connect string /ARQ │
- ╘═══════════════════════════════════════════════════════════════════════╛
-
-
- Sample SPAWNBBS.BAT File:
- ------------------------
-
- @ECHO OFF
- CD\RG
- RENEGADE -B%1/%6 -X%3 -Q -N1 -I%7 <- Here I load my BBS program.
- If ERRORLEVEL 2 Goto EchoMail The -I%7 is the CID string.
- Goto End
- :EchoMail
- (Here I handle mail entered while the user was online)
- Goto End
- :End
- CD\
- C:\RUNPOP <- Here I run RUNPOP.BAT to reload Portal.
-
- Notice that when Renegade is loaded above, I use -I%7 in the command line.
- This is the command switch to load the CID number from the commandline, and
- where CIDNPOP stores the CID number extracted from the Portal log file. All
- you need to do is add the proper switch for your BBS program to your
- SPAWNBBS.BAT file, plus the %7, and you should be off and running with the
- CID number being passed to your BBS program.
-
-
- CIDNPOP.CFG File:
- ---------------
-
- Here is the format and explanation of the CIDNPOP.CFG file that makes the
- program work:
-
- C:\POP\PORTAL.LOG <- Full path and name of your Portal log file.
- C:\POP\BBSBATCH.BAT <- Full path and name of your BBSBATCH.BAT file.
- ARQ <- The string that your modem sends to indicate that
- a reliable error correcting session has been made
- with the remote system. Most systems will use
- ARQ or REL. CIDNPOP uses this to decide if a dummy
- argument needs to be used in the BBSBATCH.BAT
- file.
-
- The program does check for the existance of the config file, and it verifies
- the existance of the portal.log and the bbsbatch.bat path/name as entered in
- the config file. If there is an error, the system will BEEP, but the BBS
- will load and run uninterupted. However the CID info will not be processed.
- I did this to make sure that the program wouldn't hang your system for hours
- with an error message on the screen, so if you hear it beep, there is a
- problem. You will need to verify that the config file is in the directory
- that the exe is called from, and that the information in the config file is
- correct.
-
- Output Examples (with and without using CIDNPOP):
-
- 1) BBSBATCH.BAT for a 2400 baud non-error correcting modem without CIDNPOP:
-
- SPAWNBBS 2400 2 120 0 38400
-
- Using CIDNPOP:
-
- SPAWNBBS 2400 2 120 0 38400 BBS ###-###-####
-
- 2) BBSBATCH.BAT for a 14.4 baud error correcting connection without CIDNPOP:
-
- SPAWNBBS 14400 2 345 0 38400 ARQ
-
- Using CIDNPOP:
-
- SPAWNBBS 14400 2 345 0 38400 ARQ ###-###-####
-
-
-
- -= CONTACTING THE AUTHOR =-
-
- The best method of contact is via The Rebel's Yell BBS, 1-703-494-4470.
-
- My network addresses are:
-
- FidoNet 1:265/0 or 1:265/118
- RGSNet 50:57/0 or 50:520/0 or 50:520/104
- ITCNet 85:887/0 or 85:887/84
- Internet don_ludington@f118.n265.z1.fidonet.org
-
- Of course, you can also reach me via "snail mail" at:
-
- Don Ludington
- 1605 Lakewood Drive
- Woodbridge, VA 22192
-
-