Scheduled Task
-
Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.
Thanks & Regards Kumaran
-
Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.
Thanks & Regards Kumaran
Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp
-
Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp
use google..ul easily find the solution..
-
Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.
Thanks & Regards Kumaran
Kumaran 21st Century wrote:
but not windows task scheduler
Kind of odd considering that's exactly what the Scheduler is for... Your app with then have to be running 24 hours a day. This would probably require you to write your code as a Windows service. Your app would create a Threading Timer, NOT a Form's based Timer. Set it for 60 seconds. When the timer wakes your code up, just check the current time against the scheduled time, hour and minutes only, not seconds. When the two match, fire off your email code. Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Kumaran 21st Century wrote:
but not windows task scheduler
Kind of odd considering that's exactly what the Scheduler is for... Your app with then have to be running 24 hours a day. This would probably require you to write your code as a Windows service. Your app would create a Threading Timer, NOT a Form's based Timer. Set it for 60 seconds. When the timer wakes your code up, just check the current time against the scheduled time, hour and minutes only, not seconds. When the two match, fire off your email code. Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.
Dave Kreskowiak Microsoft MVP - Visual Basic
Dave Kreskowiak wrote:
Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.
I second that.
You can only be young once. But you can always be immature. - Dave Barry
-
Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp
Clickity Police http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/[^] http://www.codeproject.com/vb/net/Windows_Services.asp[^]
You can only be young once. But you can always be immature. - Dave Barry
-
Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.
Thanks & Regards Kumaran
Kumaran 21st Century wrote:
I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler.
I've never understood why anyone would want to reinvent the wheel
Steve Jowett