Accessing Add Scheduled Task Wizard

J

John Bowman

Hi,

I have a C# app that needs to launch the "Add Scheduled Tasks" wizard found
in the control panel "Scheduled Tasks" applet. I realize that this "applet"
really just opens the tasks folder, but I need to launch the add tasks
wizard inside the folder. Does anyone have any ideas of how to do this? I
can't find anything in the MSDN regarding this. All it mentions is the Task
Scheduler API and I can't seem to find it in there either. Did I miss
something? If it's in there, what reference(s) do I need to set to gain
access to it's interfaces in my C# code?

Thanks,
 
J

John Bowman

Gagik,

Thanks for the link, I'll pull down the info & see where it takes me.
However, there must be some mechanism to launch the "Add Scheduled Task"
wizard, since from within the Scheduled Tasks folder, you can double click
it and some code somewhere gets executed that launches the wizard.

John
 
J

John Bowman

Gagik,

Again, thanks for the link. Unfortunately, it still doesn't get me where I
need to go. There must be some MS person out there who knows how they call
it when the user double clicks on the "Add Scheduled Task" icon inside the
"Scheduled Tasks" folder. I'm guessing you need to use Rundll32.exe and some
dll function somewhere that I cannot find any doc's for.

John
 
F

Fabio

Hi,

If it is a control panel applet you may be able to use control panel to open
the applet in your behalf. Just create a new process launching "control
<appletname>" (eg. control userpasswords2) , hopefully that will work for
you.

Fabio Cavalcante
tp_slc_facavalcanteATmsnDOTcom
 
J

John Bowman

Fabio,

Thanks for the post. I played that idea too. It works to open the "Scheduled
Tasks" folder by starting a process for Control.exe and the argument being
"SchedTasks". Unfortunately, 2 problems: 1)Tthe process that opens the
folder window exits immediately once the folder window is opened, so there's
no way (short of monitoring/using FindWindowEx on the "Scheduled Tasks"
window) to determine when the user is finished with it. 2) There's still no
way to launch the "Add Scheduled Task" wizard ... bummer :( .

John
 

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