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 >
Text File  |  1993-03-17  |  3KB  |  122 lines

  1.  
  2.  I am running a multi-node BBS under DVX and run Postlink for mail.  I
  3. wanted to figure out a way to exit DVX and run my events WITHOUT
  4. rebooting the machine to clear out DVX.
  5.  
  6.  I wandered through the DVX directory and found a file called
  7.  README.TXT.  In this file is listed a couple of utilities not listed
  8.  in the DVX manuals.  The utilities are:
  9.  
  10.   1.  Kill.bat - allows you to kill a DVX window from a DOS window.
  11.  
  12.   2.  Run.bat  - allows you to open and run a DVP from DOS.
  13.  
  14.   3.  PS.bat   - shows you the order your windows are loaded in.
  15.  
  16.  To accomplish this I did the following things.
  17.  
  18. 1. Run PS.bat
  19.  
  20. System Monitor v1.01 (C) Copyright 1992 By Quarterdeck Office Systems
  21.  
  22.  #  Name                             Status       Display
  23. ────────────────────────────────────────────────────────────────────
  24.  0  DESQview                         Waiting      
  25.  1  DESQview/X Server                Slicing      
  26.  2  DESQview/X Window Manager        Waiting      
  27.  3  PCBoard Node 1                   Pausing      Local                        
  28.  4  PCBoard Node 2                   Slicing      Local                        
  29.  
  30. 2. Write a couple of .bat files, a DVX menu idem and alter the DVX.bat
  31. like this:
  32.  
  33. *** Node 1's event .bat file ***
  34.  
  35. @ECHO OFF
  36. CLS
  37. CD C:\
  38. REM > c:\event1.flg
  39. C:
  40. CD\DVX
  41. RUN DROP
  42.  
  43. *** Node 2's event .bat file ***
  44.  
  45. @echo off
  46. EXIT
  47.  
  48. *** Drop.bat located in the DVX directory ***
  49.  
  50. call kill 2
  51. call kill 1
  52.  
  53. Remember Kill.bat is supplied by QOS and only requires that you pass
  54. it a window number.
  55.  
  56. *** DVX.bat *****
  57.  
  58. C:
  59. chdir \DVX
  60. break off
  61. dvx %1 %2 %3 %4 %5
  62. chdir \
  63. :PCBEVENT
  64. IF EXIST C:\EVENT1.FLG GOTO EVENT1
  65. IF EXIST C:\EVENT2.FLG GOTO EVENT2
  66. GOTO END
  67. :EVENT1
  68. REM THIS IS THE RIME MAIL RUN
  69. CALL C:\PCB\EVENT3.BAT
  70. GOTO ENDEVENT
  71. :EVENT2
  72. REM THIS IS MAINT.
  73. CALL C:\PCB\EVENT4.BAT
  74. :ENDEVENT
  75. DVX
  76. :END
  77.  
  78. Then you must create a menu idem in DVX I called it Drop to System
  79. maint and the associated DVP was names DROP.DVP you need point at the
  80. drop.bat file for the program name and throw in were it resides for
  81. good measure.  IE. c:\dvx
  82.  
  83. Thats all you have to do.......
  84.  
  85. The way it works is like this......
  86.  
  87.  1.  Node 2's event runs first, shutting down Node 2 and closing the
  88.      window.
  89.  
  90.  2.  Node 1's event runs, creating a eventX.flg to be used later.  It
  91.      then execute QOS's "Run" program which opens a "DOS" DVX window
  92.      and runs the Drop.dvp with runs Drop.bat
  93.  
  94.  3.  Drop.bat closes windows 1 and 2, as which we can see by the PS.BAT
  95.      status report are the Desqview window manager and the Desqview
  96.      Server,  (this is what actually shuts DVX down). It uses the QOS
  97.      .bat file called kill.
  98.  
  99.  4.  Control is now taken over by the DVX.BAT which in this case finds
  100.      the eventX.flg and runs the associated event.
  101.  
  102.  5.  When the event has been completed, control again is passed to the
  103.      DVX.BAT which restarts DVX.
  104.  
  105. That's all there is to it.  If you find a better way to do this, "I'm
  106. all ears ( as H. Ross would say ).  I may be reached via RIME ( ->1475
  107. Neptune ) or via the following BBS numbers:
  108.  
  109. Node 1 1200-19200 BPS USR HST 16.8 Dual Standard
  110.  708--689-1980
  111.  
  112.  or
  113.  
  114. Node 2 1200-19200 BPS AT&T DataPort 14.4/FAX V32.bis
  115.  708-689-0119
  116.  
  117. Good Luck....
  118.  
  119. Ray Sulich
  120. Sysop: Straight Board BBS
  121.        Great Lakes IL
  122.