How do I display the properties of a scheduled task?

I have a C # application that uses a form to set a set of parameters. These settings can be read by a console application, so it can run through the built-in Windows task scheduler. I would like to just open the scheduled task as if I had just opened it from the gui in Windows so that the user can set all options for the scheduled task. I know I can use a library like http://www.codeproject.com/KB/cs/tsnewlib.aspx , but I would no longer need to recreate all the parameters in WinForm when everything is already available on Windows. Does anyone know how I can programmatically display the built-in Windows Task Scheduler from C #?

Additional Notes: This is required to run on XP and Server 2003, and it looks like taskchd.msc was introduced in Vista. Also I would like to open a specific task

+2


a source to share


1 answer


The CodeProject library you referenced also has a Task.DisplayPropertySheet method.



I'm guessing this wraps IProvideTaskPage :: GetPage etc. and therefore should allow you to show the UI without having to replicate it yourself. My understanding is that you can only show the GUI as it looks like in XP, the new Vista / 7 GUI is not available through this interface.

+1


a source







All Articles