By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

Accessing Add Scheduled Task Wizard

P: n/a
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> jo*********@thermo.com
Nov 16 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
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> jo*********@thermo.com

Nov 16 '05 #2

P: n/a
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." <ng***********@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

--------------------------------------------------------------------------
Automate your VB, VC++ and .NET component builds
http://www.visualmake.com
--------------------------------------------------------------------------
"John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
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> jo*********@thermo.com


Nov 16 '05 #3

P: n/a
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:Of**************@tk2msftngp13.phx.gbl...
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." <ng***********@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

--------------------------------------------------------------------------
Automate your VB, VC++ and .NET component builds
http://www.visualmake.com


--------------------------------------------------------------------------
"John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote in message news:O4**************@TK2MSFTNGP10.phx.gbl...
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> jo*********@thermo.com



Nov 16 '05 #4

P: n/a
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." <ng***********@visualmake.com> wrote in message
news:Cobqc.513870$oR5.153733@pd7tw3no...
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:Of**************@tk2msftngp13.phx.gbl...
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." <ng***********@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


--------------------------------------------------------------------------
Automate your VB, VC++ and .NET component builds
http://www.visualmake.com


--------------------------------------------------------------------------
"John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:O4**************@TK2MSFTNGP10.phx.gbl...
> 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> jo*********@thermo.com
>
>



Nov 16 '05 #5

P: n/a
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:OV**************@TK2MSFTNGP09.phx.gbl...
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." <ng***********@visualmake.com> wrote in message
news:Cobqc.513870$oR5.153733@pd7tw3no...
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 jo*********@thermo.com>" <<Remove this before reply> wrote in message news:Of**************@tk2msftngp13.phx.gbl...
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." <ng***********@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
>


--------------------------------------------------------------------------
> Automate your VB, VC++ and .NET component builds
> http://www.visualmake.com


--------------------------------------------------------------------------
> "John Bowman jo*********@thermo.com>" <<Remove this before reply> wrote
in
> message news:O4**************@TK2MSFTNGP10.phx.gbl...
> > 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> jo*********@thermo.com
> >
> >
>
>



Nov 16 '05 #6

P: n/a
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**************@TK2MSFTNGP12.phx.gbl...
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:OV**************@TK2MSFTNGP09.phx.gbl...
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." <ng***********@visualmake.com> wrote in message
news:Cobqc.513870$oR5.153733@pd7tw3no...
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 jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:Of**************@tk2msftngp13.phx.gbl...
> 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." <ng***********@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
> >
>


--------------------------------------------------------------------------
> > Automate your VB, VC++ and .NET component builds
> > http://www.visualmake.com
>


--------------------------------------------------------------------------
> > "John Bowman jo*********@thermo.com>" <<Remove this before reply>

wrote
in
> > message news:O4**************@TK2MSFTNGP10.phx.gbl...
> > > 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> jo*********@thermo.com
> > >
> > >
> >
> >
>
>



Nov 16 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.