Januk,
Regarding your message dated: 17 September 2000...
JA> I don't think there is an internal way to do this exactly, but you
JA> might try the following.
JA> Create a two line batch file like the following.
JA> ---Begin Batch file---
JA> C:\"Program Files"\"The Bat!"\thebat.exe /NoLogo [EMAIL PROTECTED];S="I'm
Shutting Down";Send
JA> C:\"Program Files"\"The Bat!"\thebat.exe /NoLogo /exit
JA> ---End Batch file---
JA> Now run this from a filter. Just be careful not to create an infinite
JA> loop as I did while testing the above. <sigh> It also appears that
JA> you really do need the first command to give TB enough time before
JA> shutting down. I'm not sure why a batch file with only the second
JA> line doesn't work when called from a script.
Thanks for this - that was a great idea and seems to do what I want.
Being ever the experimentalist, I put the following into a filter
simply to see if I could avoid the batch file and do the shutdown from
TB! itself...
External Program Call from Sorting Office:
"c:\Program Files\The Bat!\thebat.exe" /NOLOGO /exit
I then sent myself an email that would trigger the filter (pardon me
if I don't reveal the specifics but it could be abused in a most
irritating yet surely *so amusing* way if I did, yes?!) and waited.
After a few moments TB! did a mail-check, found the message, issued
the command and shutdown. Brilliant!
I wouldn't have thought of issuing another TB! instance with the
"/exit" flag as a way of closing the current TB! instance so that's
pretty top thinking on your part - cheers!
Now, let's create a template of my shutdown message and copy the file
to home before I forget what I did this for!
Thanks again and best wishes,
Mark.
--
---------------------------------------------------------------------
Using TheBat! 1.46c Windows NT 4 0 1381 Service Pack 6
---------------------------------------------------------------------
Just4Fun - Freestuff, Humour and More! - http://just4fun.ipfox.com/
---------------------------------------------------------------------
Mark R Harding
The Integrated Systems Group (Vision)
Department of Electronics & Electrical Engineering
The University of Edinburgh, King's Buildings, Mayfield Road
Edinburgh. EH9 3JL. Scotland. U.K.
Phone: +44 (0)131 650 5662
Fax: +44 (0)131 650 6554
Email: mailto:[EMAIL PROTECTED]
URL: http://www.ee.ed.ac.uk/~mrh/
---------------------------------------------------------------------
PGP-Key Available at: http://www.ee.ed.ac.uk/~mrh/pgp.html
---------------------------------------------------------------------
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : [email protected]