Connecting Tech Pros Worldwide Help | Site Map

Accessing Add Scheduled Task Wizard

John Bowman
Guest
 
Posts: n/a
#1: Nov 16 '05
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,

--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> john.bowman@thermo.com


Gagik A.
Guest
 
Posts: n/a
#2: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


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

--------------------------------------------------------------------------
Automate your VB, VC++ and .NET component builds
http://www.visualmake.com
--------------------------------------------------------------------------
"John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote in
message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I have a C# app that needs to launch the "Add Scheduled Tasks" wizard[/color]
found[color=blue]
> in the control panel "Scheduled Tasks" applet. I realize that this[/color]
"applet"[color=blue]
> 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[/color]
Task[color=blue]
> 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,
>
> --
> John C. Bowman
> Software Engineer
> Thermo Electron Scientific Instruments Div.
> <Remove this before reply> john.bowman@thermo.com
>
>[/color]


John Bowman
Guest
 
Posts: n/a
#3: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


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

"Gagik A." <ngSpam_Filter@visualmake.com> wrote in message
news:cD8qc.512587$oR5.177970@pd7tw3no...[color=blue]
> 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
>
> --------------------------------------------------------------------------
> Automate your VB, VC++ and .NET component builds
> http://www.visualmake.com
> --------------------------------------------------------------------------
> "John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote in
> message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have a C# app that needs to launch the "Add Scheduled Tasks" wizard[/color]
> found[color=green]
> > in the control panel "Scheduled Tasks" applet. I realize that this[/color]
> "applet"[color=green]
> > 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?[/color][/color]
I[color=blue][color=green]
> > can't find anything in the MSDN regarding this. All it mentions is the[/color]
> Task[color=green]
> > 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,
> >
> > --
> > John C. Bowman
> > Software Engineer
> > Thermo Electron Scientific Instruments Div.
> > <Remove this before reply> john.bowman@thermo.com
> >
> >[/color]
>
>[/color]


Gagik A.
Guest
 
Posts: n/a
#4: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


John,

you may want to have a look at the RunDLL/RunDLL32 interface, as described
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 using
this method.

Cheers,
Gagik
--------------------------------------------------------------------------
Automate your VB, VC++ and .NET component builds
http://www.visualmake.com
--------------------------------------------------------------------------
"John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote in
message news:OfvSPFFPEHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> 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
>
> "Gagik A." <ngSpam_Filter@visualmake.com> wrote in message
> news:cD8qc.512587$oR5.177970@pd7tw3no...[color=green]
> > 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[/color][/color]
solution.[color=blue][color=green]
> > http://www.codeproject.com/csharp/TSNewLib.asp
> >
> > HTH
> > Gagik A
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > Automate your VB, VC++ and .NET component builds
> > http://www.visualmake.com[/color]
>
> --------------------------------------------------------------------------[color=green]
> > "John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote[/color][/color]
in[color=blue][color=green]
> > message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I have a C# app that needs to launch the "Add Scheduled Tasks" wizard[/color]
> > found[color=darkred]
> > > in the control panel "Scheduled Tasks" applet. I realize that this[/color]
> > "applet"[color=darkred]
> > > 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[/color][/color][/color]
this?[color=blue]
> I[color=green][color=darkred]
> > > can't find anything in the MSDN regarding this. All it mentions is the[/color]
> > Task[color=darkred]
> > > 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[/color][/color][/color]
gain[color=blue][color=green][color=darkred]
> > > 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]


John Bowman
Guest
 
Posts: n/a
#5: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


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

"Gagik A." <ngSpam_Filter@visualmake.com> wrote in message
news:Cobqc.513870$oR5.153733@pd7tw3no...[color=blue]
> John,
>
> you may want to have a look at the RunDLL/RunDLL32 interface, as described
> 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 using
> this method.
>
> Cheers,
> Gagik
> --------------------------------------------------------------------------
> Automate your VB, VC++ and .NET component builds
> http://www.visualmake.com
> --------------------------------------------------------------------------
> "John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote in
> message news:OfvSPFFPEHA.3988@tk2msftngp13.phx.gbl...[color=green]
> > 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[/color][/color]
click[color=blue][color=green]
> > 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...[color=darkred]
> > > 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[/color][/color]
> solution.[color=green][color=darkred]
> > > 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][/color][/color]
wrote[color=blue]
> in[color=green][color=darkred]
> > > message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > >
> > > > I have a C# app that needs to launch the "Add Scheduled Tasks"[/color][/color][/color]
wizard[color=blue][color=green][color=darkred]
> > > 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[/color][/color][/color]
tasks[color=blue][color=green][color=darkred]
> > > > wizard inside the folder. Does anyone have any ideas of how to do[/color][/color]
> this?[color=green]
> > I[color=darkred]
> > > > can't find anything in the MSDN regarding this. All it mentions is[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > Task
> > > > Scheduler API and I can't seem to find it in there either. Did I[/color][/color][/color]
miss[color=blue][color=green][color=darkred]
> > > > something? If it's in there, what reference(s) do I need to set to[/color][/color]
> gain[color=green][color=darkred]
> > > > 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]


Fabio
Guest
 
Posts: n/a
#6: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


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
"John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote in
message news:OVEm5mOPEHA.1644@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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[/color]
some[color=blue]
> 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=green]
> > John,
> >
> > you may want to have a look at the RunDLL/RunDLL32 interface, as[/color][/color]
described[color=blue][color=green]
> > 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=blue][color=green]
> > this method.
> >
> > Cheers,
> > Gagik[/color]
>
> --------------------------------------------------------------------------[color=green]
> > Automate your VB, VC++ and .NET component builds
> > http://www.visualmake.com[/color]
>
> --------------------------------------------------------------------------[color=green]
> > "John Bowman john.bowman@thermo.com>" <<Remove this before reply> wrote[/color][/color]
in[color=blue][color=green]
> > message news:OfvSPFFPEHA.3988@tk2msftngp13.phx.gbl...[color=darkred]
> > > 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[/color][/color][/color]
Task"[color=blue][color=green][color=darkred]
> > > wizard, since from within the Scheduled Tasks folder, you can double[/color][/color]
> click[color=green][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[/color]
> > solution.[color=darkred]
> > > > 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][/color]
> wrote[color=green]
> > in[color=darkred]
> > > > message news:O4jeDRDPEHA.3708@TK2MSFTNGP10.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > I have a C# app that needs to launch the "Add Scheduled Tasks"[/color][/color]
> wizard[color=green][color=darkred]
> > > > 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[/color][/color]
> tasks[color=green][color=darkred]
> > > > > wizard inside the folder. Does anyone have any ideas of how to do[/color]
> > this?[color=darkred]
> > > I
> > > > > can't find anything in the MSDN regarding this. All it mentions is[/color][/color]
> the[color=green][color=darkred]
> > > > Task
> > > > > Scheduler API and I can't seem to find it in there either. Did I[/color][/color]
> miss[color=green][color=darkred]
> > > > > something? If it's in there, what reference(s) do I need to set to[/color]
> > gain[color=darkred]
> > > > > 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]


John Bowman
Guest
 
Posts: n/a
#7: Nov 16 '05

re: Accessing Add Scheduled Task Wizard


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]


Closed Thread