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
"Fabio" <sn> wrote in message news:uh$zzOPPEHA.2444@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi,
>
> If it is a control panel applet you may be able to use control panel to[/color]
open[color=blue]
> 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
> "John Bowman
john.bowman@thermo.com>" <<Remove this before reply> wrote in
> message news:OVEm5mOPEHA.1644@TK2MSFTNGP09.phx.gbl...[color=green]
> > Gagik,
> >
> > Again, thanks for the link. Unfortunately, it still doesn't get me where[/color][/color]
I[color=blue][color=green]
> > need to go. There must be some MS person out there who knows how they[/color][/color]
call[color=blue][color=green]
> > it when the user double clicks on the "Add Scheduled Task" icon inside[/color][/color]
the[color=blue][color=green]
> > "Scheduled Tasks" folder. I'm guessing you need to use Rundll32.exe and[/color]
> some[color=green]
> > dll function somewhere that I cannot find any doc's for.
> >
> > John
> >
> > "Gagik A." <ngSpam_Filter@visualmake.com> wrote in message
> > news:Cobqc.513870$oR5.153733@pd7tw3no...[color=darkred]
> > > John,
> > >
> > > you may want to have a look at the RunDLL/RunDLL32 interface, as[/color][/color]
> described[color=green][color=darkred]
> > > in
> > >
http://support.microsoft.com:80/supp.../q164/7/87.asp
> > >
> > > I know you can call some control panel applets by shelling out to
> > > RunDLL32.exe, not sure though if Add Scheduled Tasks can be invoked[/color][/color]
> using[color=green][color=darkred]
> > > this method.
> > >
> > > Cheers,
> > > Gagik[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green][color=darkred]
> > > Automate your VB, VC++ and .NET component builds
> > >
http://www.visualmake.com[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green][color=darkred]
> > > "John Bowman
john.bowman@thermo.com>" <<Remove this before reply>[/color][/color][/color]
wrote[color=blue]
> in[color=green][color=darkred]
> > > message news:OfvSPFFPEHA.3988@tk2msftngp13.phx.gbl...
> > > > Gagik,
> > > >
> > > > Thanks for the link, I'll pull down the info & see where it takes[/color][/color][/color]
me.[color=blue][color=green][color=darkred]
> > > > However, there must be some mechanism to launch the "Add Scheduled[/color][/color]
> Task"[color=green][color=darkred]
> > > > wizard, since from within the Scheduled Tasks folder, you can double[/color]
> > click[color=darkred]
> > > > it and some code somewhere gets executed that launches the wizard.
> > > >
> > > > John
> > > >
> > > > "Gagik A." <ngSpam_Filter@visualmake.com> wrote in message
> > > > news:cD8qc.512587$oR5.177970@pd7tw3no...
> > > > > As far as I know there is no built-in support for this in .NET.
> > > > > Here is a link to an article with source code for an alternative
> > > solution.
> > > > >
http://www.codeproject.com/csharp/TSNewLib.asp
> > > > >
> > > > > HTH
> > > > > Gagik A
> > > > >
> > > >
> > >[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green][color=darkred]
> > > > > Automate your VB, VC++ and .NET component builds
> > > > >
http://www.visualmake.com
> > > >
> > >[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green][color=darkred]
> > > > > "John Bowman
john.bowman@thermo.com>" <<Remove this before reply>[/color]
> > wrote[color=darkred]
> > > in
> > > > > message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...
> > > > > > Hi,
> > > > > >
> > > > > > I have a C# app that needs to launch the "Add Scheduled Tasks"[/color]
> > wizard[color=darkred]
> > > > > found
> > > > > > in the control panel "Scheduled Tasks" applet. I realize that[/color][/color][/color]
this[color=blue][color=green][color=darkred]
> > > > > "applet"
> > > > > > really just opens the tasks folder, but I need to launch the add[/color]
> > tasks[color=darkred]
> > > > > > wizard inside the folder. Does anyone have any ideas of how to[/color][/color][/color]
do[color=blue][color=green][color=darkred]
> > > this?
> > > > I
> > > > > > can't find anything in the MSDN regarding this. All it mentions[/color][/color][/color]
is[color=blue][color=green]
> > the[color=darkred]
> > > > > Task
> > > > > > Scheduler API and I can't seem to find it in there either. Did I[/color]
> > miss[color=darkred]
> > > > > > something? If it's in there, what reference(s) do I need to set[/color][/color][/color]
to[color=blue][color=green][color=darkred]
> > > gain
> > > > > > access to it's interfaces in my C# code?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > --
> > > > > > John C. Bowman
> > > > > > Software Engineer
> > > > > > Thermo Electron Scientific Instruments Div.
> > > > > > <Remove this before reply>
john.bowman@thermo.com
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]