473,396 Members | 1,924 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,396 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 2258
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.