Schedule task when system shuts down?

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!
 
M

Mohamoss

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top