Hello, how can i schedule a task to be executed at system startup of some date ?
Printable View
Hello, how can i schedule a task to be executed at system startup of some date ?
Hello Invader7:
According to ITGURU, on this thread (http://www.codeguru.com/forum/showthread.php?t=381907), you should be able to create a windows service using C#, then with the following bit of code:
In the following code, an email would be sent at 9:00AM, but you get the idea.
Hopefully, this helps, if it does please rate up.Code:while (1==1)
{
DateTime dtNowTime = DateTime.Now;
if (dtNowTime.Hour == 9 && dtNowTime.Minute == 0)
{
// Write your EMail Sending Code here
}
}
Thanks,
Quinn
Windows Task Scheduler - AT /?