my computer's OS is windows 7, I would like to do this: when my computer's CPU is overrun over 30 minutes, it will trigger task scheduler's event which is send a email to my email account. I don't know how to do this, anyone know it? Thank you for all your kind attention and sorry for my bad English.
migrated from stackoverflow.com Apr 18 '13 at 12:55
This question came from our site for professional and enthusiast programmers.
It's difficult dealing with a foreign language. I am sure you are doing better than I would with your language.
Assuming you want to send an email if a particular process has been running for more than 30 minutes CPU time,
Just change the time to suit and the executable name as required.
Schedule this batch to run as often as you see fit - say every 40 minutes or whatever.
As for how you'd actually send the email, I use