Home » Infrastructure » Windows » windows task scheduler
windows task scheduler [message #255088] Mon, 30 July 2007 10:43 Go to next message
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 #255091 is a reply to message #255088] Mon, 30 July 2007 10:52 Go to previous messageGo to next message
Michel Cadot
Messages: 68722
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Search for "blat", it is able send you an email when you want.

http://www.google.com/search?hl=en&q=blat&meta=

Regards
Michel
Re: windows task scheduler [message #255094 is a reply to message #255088] Mon, 30 July 2007 11:01 Go to previous messageGo to next message
plshelp
Messages: 205
Registered: January 2007
Senior Member
Thanks, Michel!
Re: windows task scheduler [message #255099 is a reply to message #255088] Mon, 30 July 2007 11:08 Go to previous messageGo to next message
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 #255102 is a reply to message #255099] Mon, 30 July 2007 11:19 Go to previous messageGo to next message
Michel Cadot
Messages: 68722
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
http://www.google.com/search?hl=en&q=smtp+windows&meta=

Regards
Michel
Re: windows task scheduler [message #255318 is a reply to message #255099] Tue, 31 July 2007 06:48 Go to previous message
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
Previous Topic: Oracle Job did not start after promoting to PDC
Next Topic: Can't Login Metalink using IE but Mozilla Can and also can't OWC using my laptop
Goto Forum:
  


Current Time: Thu Dec 12 22:46:03 CST 2024