Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Other Programming > VBScript
|
VBScript For questions and discussions related to VBScript.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VBScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 17th, 2005, 11:42 AM
Registered User
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Send a Message box to another machine

I currently have several scripts that transmit messages through the NET SEND dos command.

Does vbs have a way of sending a msgbox to someone other than the local machine were its running.

alittle more info:

I have a script the checks file names in folders and writes error reports accourdingly. If any errors are found it sends a message (using net send) to a list of people sitting on the network. I would like to send them a msgbox instead, It looks like net send doesnt support Icons like vbCritical.

Thanks

Randy Dray
Reply With Quote
  #2 (permalink)  
Old January 19th, 2005, 12:11 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure about message boxes, I will look that up. In the meantime, I know you can send emails with vbscript. If the users have a pop up email notification, it would do the same thing, plus provide a record of errors.


mmcdonal
Reply With Quote
  #3 (permalink)  
Old January 28th, 2005, 06:36 PM
Registered User
 
Join Date: Jan 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, We currently do send email through script, kind of a home brew distribution network.

Thanks

Randy Dray
Reply With Quote
  #4 (permalink)  
Old January 31st, 2005, 04:33 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

To get you started again, I know you can remotely script like WMI scripts on clients.

You may want to look at running a script remotely that contains the warning you need, rather than using a service to send a message per se using Windows Messenger Service. Like have a critical error script that passes text from the command line, and have a local script that packages text for the command line and launches the script that runs remotely.

You will want to check out Appendix G in VBScript 2nd Edition Programmer's Reference. Maybe there is some code on the site. That chapter covers the Windows Script Host Object Model, and specifically I am looking at WshRemote. (I have to leave work right now so can't follow up till later.)


mmcdonal
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to send attachment with text message ashuphp PHP How-To 1 October 29th, 2007 06:08 PM
Send Message to Email inbaa ASP.NET 1.0 and 1.1 Professional 2 August 28th, 2006 05:45 AM
send message to many recipients eda BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 May 29th, 2006 08:49 PM
Send message on Local net qazi_nomi Classic ASP Basics 3 October 26th, 2004 02:22 AM
How to send message to SMS !!!!! stevenThu Classic ASP Professional 4 August 26th, 2004 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.