Schedule task when system shuts down?

  • Thread starter Thread starter Mullin Yu
  • Start date Start date
M

Mullin Yu

How can I do so? Can I write a windows service that will run a bat file when
the system shuts down?

I want to write a service because I can create a schedule task by Windows
Scheduler only when the system starts up.

Thanks!
 
Hi Mullin
You can add this functionality to the handler of the onStop event of the
service which will be called by windows before shutting down..
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top