TIP: Click on subject to list as thread! ANSI
echo: binkley
to: Dave Davidson
from: Tony Frank
date: 1998-11-11 19:53:16
subject: Another Newbie question....

Hello Dave!

Sunday November 08 1998 23:15, Dave Davidson wrote to All:

 DD> How can I tell Binkley (WIN95-XE5) to call batch files from the event
 DD> file?

I'm running the same version under OS/2, but that shouldn't make much of a
difference.

 DD> What I need to do is have Binkley exit then call up a Win95 program to
 DD> dial my ISP for the mail packet then reload Binkley.
 DD> (1) Is this even possible?
 DD>
 DD> (2) If so, how is it done?
 DD>

Here's a section from my Binkley config...

=== Begin binkley.cfg ===
; ----------------------------------------------------------------------------
; BINKLEY.CFG - Configuration File for Bink/XE for Internet Node (no. 2)
; ----------------------------------------------------------------------------

[.. extra bits cut ...]

; ----------------------------------------------------------------------------
; External Spawning & Related
; ----------------------------------------------------------------------------
BBS Spawn
Extern spawn
AfterMail START /I /C "Unpacking Mail" "e:\Bbs\UNPACKM.CMD"
;
ErrLevelShell 200 start /i /c "Game & Mail Processing"
e:\bbs\cmd\process.cmd
ErrLevelShell 201 start /i /c "Nightly Processing" e:\bbs\cmd\nightly.cmd
ErrLevelShell 202 start /i /c "Weekly Processing" e:\bbs\cmd\weekly.cmd
; ----------------------------------------------------------------------------
; End
; ----------------------------------------------------------------------------
=== End binkley.cfg ===

This will cause binkley to execute the commandline listed there when that
error level occurs.

To simply exit and drop to a batchfile location, just add an event with a
specific errorlevel to your event file (binkley.evt)

Then in your batch file, do whatever you need to in order to do your dialling.

Ie in binkley.evt:

=== Begin binkley.evt ===
; ----------------------------------------------------------------------------
;     Title                 Day         Start End   Error   Flags      Comment
;
Event "Nightly Maintenance" All         00:05 00:05 E1=201 F          ;
Event "Weekly Maintenance"  Mon         00:30 00:30 E1=202 F          ;
Event "Outbound Processing" All         01:00 01:00 E1=200 F          ;
Event "Internet Mail"       All         22:58 22:58 E1=203 F          ;
;
Event "Default"             All         00:00 23:59        B K M
R    ; Rest
; ; --------------------------------------------------------------------------- -
=== End binkley.evt ===

Just add a line for your event, and then check for that errorlevel in your
batchfile, and then start your dialler...

Tony

... "IT DOES NOT MEAN A THING!!!" - Londo
--- GoldED/W32 3.00.Beta5+
* Origin: Neptune II +61-3-9720-4672 (neptune2.dyn.ml.org) (3:632/553)
SEEN-BY: 396/1 632/0 371 633/260 267 270 284 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 632/553 640/954 201 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.