windows task scheduler [message #255088] |
Mon, 30 July 2007 10:43 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
Hi all,
I have enabled the scheduled task on my windows local machine to check the availability of all the databases. The task is running fine and I have a log file generated every time it runs.
I am trying to find out if there is a way where I can enable it to send me notifications when the task is executed. Please advise if I can do so. Thanks much!
|
|
|
|
|
Re: windows task scheduler [message #255099 is a reply to message #255088] |
Mon, 30 July 2007 11:08 |
plshelp
Messages: 205 Registered: January 2007
|
Senior Member |
|
|
I just downloaded blat262.I just found in the readme that I need SMTP server to send the mails? Is it anyway possible for me to do it without the server since I dont have an SMTP server that I can use for this purpose.
Thanks!
|
|
|
|
Re: windows task scheduler [message #255318 is a reply to message #255099] |
Tue, 31 July 2007 06:48 |
kirill.spb
Messages: 6 Registered: July 2007
|
Junior Member |
|
|
plshelp wrote on Mon, 30 July 2007 20:08 | I just downloaded blat262.I just found in the readme that I need SMTP server to send the mails? Is it anyway possible for me to do it without the server since I dont have an SMTP server that I can use for this purpose.
Thanks!
|
you can use "net send" command for sending a popup on PC.
or you want to get a email notifications? then try to use this VBS
Set objEmail = CreateObject("CDO.Message")
objEmail.bodypart.CharSet = "windows-1251"
objEmail.From = "someone@somewhere.org"
objEmail.To = "anyone@anywhere.org"
objEmail.Subject = "Notification"
objEmail.Textbody = "backup done succesfully"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "my.smtpserver.com"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
may be this link helps you to correct script as you wish
http://www.paulsadowski.com/WSH/cdo.htm
|
|
|