Rod,

Stealing Joe's original syntax, the following Visual Basic Script will do
the trick (call it test.vbs or somesuch).
It won't even open a window in the first place.

Set collArgs = Wscript.Arguments
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile("c:\output.txt", True)

f1.WriteLine "WhatsUp Gold Status at " & collArgs(0) & " ... Down Devices: "
& collArgs(1) & " , Devices with down services " & collArgs(2)
f1.Close

Hope that helps,

Andy Young
Design Systems Administrator.
BBC Resources Ltd.

*       Work:    020 8225 8388 
*       Fax:        020 8576 1639
*       Room 3501, Stage 5, Television Centre, Wood Lane, London, W12 7RJ
*       mailto:[EMAIL PROTECTED]
 *      http://www.bbcresources.com 


> -----Original Message-----
> From: Rod Carty [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 21, 2001 12:46 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [WhatsUp Forum] Screen saver info
> 
> Joe;
> 
> Thanks for the reply. Your info looks great, and initial testing is
> promising. One quirk though is the DOS window stays open after the bat
> file is run. I redefined things to go through a pif shortcut, which I
> specified was to close the window on exit, but the window still stays
> open. Any ideas?
> 
> Joe Sepielli wrote:
> > 
> > Rod,
> > 
> > Here is a simple method to write WhatsUp Gold status information
> > to a file.  You can then use that file as the input to your
> > scrolling marquee application.
> > 
> > - Create a a bat file containing this command:
> > echo WhatsUp Gold Status at %1 ... Down Devices:%2, Devices with down
> services%3>test.out
> > - Create a Program Notification:
> >   o Program filename=yourfile.bat
> >   o Program arguments=%t %e %A
> > - Create a Recurring Notification that calls yourfile.bat.
> > 
> > This exmample uses a few of the following notification variables:
> > (see the help file for full details)
> > %A      Names of devices with down services  All Notifications
> > %e      Down Host Display Names              All Notifications
> > %t      Current time (hh:mm:ss)              All Notifications
> > 
> > Joe
> > 
> > In reply to 20 Nov message from [EMAIL PROTECTED]:
> > 
> > >I'm thinking about building a screen saver for one of my customers that
> displays simple
> > >scrolling marquee-style text and changes color according to WUG's
> status. I've looked
> > >around for an existing screen saver that could accept some real-time
> input like this
> > >and found nothing so it looks like I'm building it. I looked through
> the registry for
> > >WUG, looking for some item there that should indicate current status
> similar to the WUG
> > >taskbar icon - green, yellow or red - but didn't find anything. Does
> someone know of a
> > >way for me to hook into WUG realtime?
> 
> -- 
> Rod C--
> Enterprise Network Consulting
> Whitehorse, Yukon
> http://www.enc.yk.net/
> http://www.geocities.com/rodcarty/
> 
> >> I never married because there was no need.  I have three pets at home
> which answer the same purpose as a husband.  I have a dog which growls
> every morning,  a parrot which swears all afternoon and a cat that comes
> home late at night.  --Marie Corelli <<
> The preceding humor inserted by QuipSig
> http://www.enc.yk.net/quipsig/
> 4,000 quip repertory!
> 
> Please visit http://www.ipswitch.com/support/mailing-lists.html 
> to be removed from this list.
> 
> An Archive of this list is available at:
> http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to