473,230 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,230 software developers and data experts.

pop up the windows task scheduler in .net application

Dear All,

How can I pop up the windows task scheduler inside of my .net application?
Such as I have a button called Schedule Now, after clicking it, the Add
Scheduled Task window will pop up, just like clicking from Control Panel ->
Scheduled Task -> Add Scheduled Task. Appreciate ahead for any of your
suggestions. Thanks.
Jul 21 '05 #1
4 2252
see http://www.mvps.org/emorcillo/en/cod...asksched.shtml

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Christina" <Ch*******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Dear All,

How can I pop up the windows task scheduler inside of my .net application?
Such as I have a button called Schedule Now, after clicking it, the Add
Scheduled Task window will pop up, just like clicking from Control
Panel ->
Scheduled Task -> Add Scheduled Task. Appreciate ahead for any of your
suggestions. Thanks.

Jul 21 '05 #2
Thank you very much, Eric. That was a cool application. Thanks again.

Christina

"Eric Moreau (VB MVP)" wrote:
see http://www.mvps.org/emorcillo/en/cod...asksched.shtml

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Christina" <Ch*******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Dear All,

How can I pop up the windows task scheduler inside of my .net application?
Such as I have a button called Schedule Now, after clicking it, the Add
Scheduled Task window will pop up, just like clicking from Control
Panel ->
Scheduled Task -> Add Scheduled Task. Appreciate ahead for any of your
suggestions. Thanks.


Jul 21 '05 #3
Eric,

That is a cool application. But the task it scheduled can't be running
automatically since the next run time for the scheduled task is always
"Never". Any ideas for that. Appreciate so much for your help.

Christina

"Christina" wrote:
Thank you very much, Eric. That was a cool application. Thanks again.

Christina

"Eric Moreau (VB MVP)" wrote:
see http://www.mvps.org/emorcillo/en/cod...asksched.shtml

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Christina" <Ch*******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
Dear All,

How can I pop up the windows task scheduler inside of my .net application?
Such as I have a button called Schedule Now, after clicking it, the Add
Scheduled Task window will pop up, just like clicking from Control
Panel ->
Scheduled Task -> Add Scheduled Task. Appreciate ahead for any of your
suggestions. Thanks.


Jul 21 '05 #4
I wrote an article on that topic last august (www.utmag.com) and I found
that problem and a solution. Here is an extract of this artcle:

The "Add New" button and the "Properties" button launch Windows Scheduler
dialog to which you are already used. There is a small glitch with the "Add
New" button: the task will never start! It seems that the wrapper forgot one
property. The newly added task can be run without problem but will not start
when scheduled. Watch Eduardo's website as he may post a fix for that.

Meanwhile, I found a workaround to that. If you specify flags (and an end
date) when you add a new task, the task get scheduled correctly:

' Add a m_TaskScheduler
With .Triggers.Add()
.TriggerType = Trigger.Types.Daily
.BeginDay = Date.Today
.StartTime = Now
.Flags = Trigger.TriggerFlags.HasEndDate
.EndDay = Date.Parse("9999/12/31")
End With

--

HTH

Éric Moreau
MCSD, Visual Developer - Visual Basic MVP
(http://aspnet2.com/mvp.ashx?EricMoreau)
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Christina" <Ch*******@discussions.microsoft.com> wrote in message
news:DE**********************************@microsof t.com...
Eric,

That is a cool application. But the task it scheduled can't be running
automatically since the next run time for the scheduled task is always
"Never". Any ideas for that. Appreciate so much for your help.

Christina

"Christina" wrote:
Thank you very much, Eric. That was a cool application. Thanks again.

Christina

"Eric Moreau (VB MVP)" wrote:
> see http://www.mvps.org/emorcillo/en/cod...asksched.shtml
>
> --
>
> HTH
>
> Éric Moreau
> MCSD, Visual Developer - Visual Basic MVP
> (http://aspnet2.com/mvp.ashx?EricMoreau)
> Conseiller Principal / Senior Consultant
> Concept S2i inc.(www.s2i.com)
>
>
> "Christina" <Ch*******@discussions.microsoft.com> wrote in message
> news:FC**********************************@microsof t.com...
> > Dear All,
> >
> > How can I pop up the windows task scheduler inside of my .net
> > application?
> > Such as I have a button called Schedule Now, after clicking it, the
> > Add
> > Scheduled Task window will pop up, just like clicking from Control
> > Panel ->
> > Scheduled Task -> Add Scheduled Task. Appreciate ahead for any of
> > your
> > suggestions. Thanks.
>
>
>

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Faiz | last post by:
We have developed an application in VB6 (say AA.exe). We wish to schedule the execution of this application (AA.exe) through Windows Task Scheduler. Is there a way through which we can add this...
19
by: Eric | last post by:
I'm trying to have some scripts run periodically on Windows XP and found the "Task Scheduler" did not execute my scripts. My scripts are of the form scriptName.py, and will run just by invoking that...
11
by: Codemonkey | last post by:
Hi, I am writing an App in .Net that involves some scheduling of tasks. I was wondering if anybody has come accross any components or examples of how to implement a schedule manager like the one...
9
by: chandru.govind | last post by:
Hi, I built a C# application that scans a folder and pops up a form if there are any files present in the folder. I have scheduled this as a task to repeat every 1 min using the windows task...
4
by: Christina | last post by:
Dear All, How can I pop up the windows task scheduler inside of my .net application? Such as I have a button called Schedule Now, after clicking it, the Add Scheduled Task window will pop up,...
3
by: mayur_hirpara | last post by:
Hi, I am writing a VB.NET application. It is a Windows application at the moment. The application contains a button. the click event of button perform a long running task. It needs to be started...
1
by: kplkumar | last post by:
Hi all I am fairly new to windows scheduler. I have an .exe console application that needs to be run 1st of every month. I created a scheduled task in Windows Schduler and called the .exe.
1
by: =?Utf-8?B?U3Jpaw==?= | last post by:
Hi, I have a console application which needs to be run at periodic intervals. So, I want to add it in Windows Task Scheduler but at the same time, I need to pass parameters to the Application...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
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...
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.