Hi Steve Lamb,

On Montag, 11. Oktober 1999 at 19:46:44 you wrote:

SL> Monday, October 11, 1999, 10:36:10 AM, Oliver wrote:
>>   using  filemon  and  found out that The Bat! tries exactly every ten
>>   seconds  to  open some file called thebat.IPC in the directory where

SL>     From the help on command line parameters:

SL> For those who are familiar with programming we give a hint: The Bat! checks
SL> the file called TheBat.IPC which is located in the same directory where The
SL> Bat! executable (TheBat.exe) file is located. In this text file, each line
SL> represents one command that could be executed by the program, so you can write
SL> commands to this file directly and control The Bat! on your PC even over a
SL> local network. Note that TheBat.IPC is deleted as soon as all commands from it
SL> are executed, so if this file do not exist, you must create it.


OK, I didn't read that. Seems to me to be a GoodThing(tm) ;) Anyway, I
do that in some way like this, and it doesn't generate any disk access
(well, of course it does, but it doesn't keep my disk trashing around
all the time ;)

(I seem to recall The Bat! is written in Delphi) :

procedure WaitForCommandFileToAppear;
var h: HANDLE;
    theend: boolean;
begin
     h := FindFirstChangeNotification (THEBATROOTDIR + '\Commandfiles',
              false, FILE_NOTIFY_CHANGE_LAST_WRITE);
     theend := false;

     repeat
         if WaitForSingleObject (h, 1000) <> WAIT_TIMEOUT then begin
             TriggerWhateverAction;
             FindNextChangeNotification (h);
         end
         else begin
             if mylittleterminationflag then
                theend := true;
         end;
     until theend = true;
     
     FindCloseChangeNotification (h);
end;

No  guarantee  that  this  will  work, I just hacked it in ;)

Maybe  the  problem  isn't about that little file at all. But it's the
only  thing  I  could see with several monitor programs. And that disk
access  is  definitely  coming  from  The  Bat!...  If I don't have it
running, it stops immediately.

Oliver Sturm

--
Oliver Sturm / <[EMAIL PROTECTED]>

Key ID: 71D86996
Fingerprint: 8085 5C52 60B8 EFBD DAD0  78B8 CE7F 38D7 71D8 6996

-- 
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team click here:
   <mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, click below and send the generated message.
   <mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------

Reply via email to