|
-
January 7th, 2011, 07:40 PM
#1
Schedule a task at system startup
Hello, how can i schedule a task to be executed at system startup of some date ?
-
January 8th, 2011, 11:57 AM
#2
Re: Schedule a task at system startup
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.
Code:
while (1==1)
{
DateTime dtNowTime = DateTime.Now;
if (dtNowTime.Hour == 9 && dtNowTime.Minute == 0)
{
// Write your EMail Sending Code here
}
}
Hopefully, this helps, if it does please rate up.
Thanks,
Quinn
-
January 8th, 2011, 01:48 PM
#3
Re: Schedule a task at system startup
Windows Task Scheduler - AT /?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|