1

I have a web service and I'm wanting to create a method to kick off a windows task. Is this possible? I've started by creating the windows task and then using the "when an event is logged". I thought that this would be the option that I'd need, but not sure.

Any help on where to get started would be great. Thanks,

4

2 回答 2

1

If you are trying to use the Windows Task Scheduler you will have to work with the Task Scheduler COM interfaces described here. If you just want to start an executable you can use the System.Diagnostics.Process class to run the executable in a seperate process.

于 2013-02-11T15:50:52.290 回答
0

Have a look at the Task Scheduler Managed Wrapper. I have used it before and thought it was very easy to work with.

于 2013-02-11T16:14:11.500 回答