home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
d
/
dvxevent.zip
/
DVXEVENT.TXT
< prev
next >
Wrap
Text File
|
1993-03-17
|
3KB
|
122 lines
I am running a multi-node BBS under DVX and run Postlink for mail. I
wanted to figure out a way to exit DVX and run my events WITHOUT
rebooting the machine to clear out DVX.
I wandered through the DVX directory and found a file called
README.TXT. In this file is listed a couple of utilities not listed
in the DVX manuals. The utilities are:
1. Kill.bat - allows you to kill a DVX window from a DOS window.
2. Run.bat - allows you to open and run a DVP from DOS.
3. PS.bat - shows you the order your windows are loaded in.
To accomplish this I did the following things.
1. Run PS.bat
System Monitor v1.01 (C) Copyright 1992 By Quarterdeck Office Systems
# Name Status Display
────────────────────────────────────────────────────────────────────
0 DESQview Waiting
1 DESQview/X Server Slicing
2 DESQview/X Window Manager Waiting
3 PCBoard Node 1 Pausing Local
4 PCBoard Node 2 Slicing Local
2. Write a couple of .bat files, a DVX menu idem and alter the DVX.bat
like this:
*** Node 1's event .bat file ***
@ECHO OFF
CLS
CD C:\
REM > c:\event1.flg
C:
CD\DVX
RUN DROP
*** Node 2's event .bat file ***
@echo off
EXIT
*** Drop.bat located in the DVX directory ***
call kill 2
call kill 1
Remember Kill.bat is supplied by QOS and only requires that you pass
it a window number.
*** DVX.bat *****
C:
chdir \DVX
break off
dvx %1 %2 %3 %4 %5
chdir \
:PCBEVENT
IF EXIST C:\EVENT1.FLG GOTO EVENT1
IF EXIST C:\EVENT2.FLG GOTO EVENT2
GOTO END
:EVENT1
REM THIS IS THE RIME MAIL RUN
CALL C:\PCB\EVENT3.BAT
GOTO ENDEVENT
:EVENT2
REM THIS IS MAINT.
CALL C:\PCB\EVENT4.BAT
:ENDEVENT
DVX
:END
Then you must create a menu idem in DVX I called it Drop to System
maint and the associated DVP was names DROP.DVP you need point at the
drop.bat file for the program name and throw in were it resides for
good measure. IE. c:\dvx
Thats all you have to do.......
The way it works is like this......
1. Node 2's event runs first, shutting down Node 2 and closing the
window.
2. Node 1's event runs, creating a eventX.flg to be used later. It
then execute QOS's "Run" program which opens a "DOS" DVX window
and runs the Drop.dvp with runs Drop.bat
3. Drop.bat closes windows 1 and 2, as which we can see by the PS.BAT
status report are the Desqview window manager and the Desqview
Server, (this is what actually shuts DVX down). It uses the QOS
.bat file called kill.
4. Control is now taken over by the DVX.BAT which in this case finds
the eventX.flg and runs the associated event.
5. When the event has been completed, control again is passed to the
DVX.BAT which restarts DVX.
That's all there is to it. If you find a better way to do this, "I'm
all ears ( as H. Ross would say ). I may be reached via RIME ( ->1475
Neptune ) or via the following BBS numbers:
Node 1 1200-19200 BPS USR HST 16.8 Dual Standard
708--689-1980
or
Node 2 1200-19200 BPS AT&T DataPort 14.4/FAX V32.bis
708-689-0119
Good Luck....
Ray Sulich
Sysop: Straight Board BBS
Great Lakes IL