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 6 8207
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
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
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
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 > >
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 > > > > > >
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 > > > > > > > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Iain Hosking |
last post by:
I am running a SQL Server 2000 installation with several databases. Each
database and log is backed-up using a maintenance plan.
The scheduled maintance plan for the latest database does not run,...
|
by: A. Lovhaug |
last post by:
I have a console application built in the .NET Framework.
This application basically executes an XCopy based on
parameters that I pass to it. I use it for creating
scripts for backing up folders,...
|
by: im_wang |
last post by:
How can I access add scheduled task from my code, for example, I put a
button in my vb.net code, when user click it, we can see add scheduled
task wizard.
Thank you for your help.
|
by: satelite |
last post by:
Hello,
I am writing an exe that is intended to be run via a scheduled task.
However, I also need the flexibility to have users run the scheduled task
manually (right click task and select run). ...
|
by: Eric |
last post by:
Is there a way for my .Net application to lauch the Windows Scheduled Task
Wizard? I know there are the ITask APIs to create tasks directly. But is
there a way for my application to launch the...
|
by: Myster Edd |
last post by:
I have a strange problem that I think deals with security on SQL 2005.
I have a scheduled task that runs on a Windows 2000 machine. It calls
a vb script which creates a connection to SQL Server.
...
|
by: =?Utf-8?B?U0Y=?= |
last post by:
Hi expert
I have a problem when I created a scheduled task in windows server 2003.
After I entered all the
parameter via the scheduler Task Wizard, a window came out as shown below:
" The new...
|
by: Paulson |
last post by:
Dear Freinds
I want to make a program that acts as a reminder for the
users.I need to open up the Scheduled task wizard programmatically.If you
type Tasks in the run command the Tasks...
|
by: jdaelhousen |
last post by:
I have a bit of a problem I'm hoping someone can shed some light on...
I have a VB.Net console application written in VS 2003 that produces a .exe file that now sits on a Windows 2000 server...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |