473,425 Members | 1,876 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,425 software developers and data experts.

Windows Schedule

Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run this
application as job in windows scheduler. In every day of week time to run
create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR
Nov 16 '05 #1
7 2329
Why would you write a program to do this, just create the job from the
commandline (using schtasks.exe on XP and W2K3, at.exe on other).
When you really need to do this from your program you can simply use
Process.Start to create the job. Note that only administrators, power users
and backup operators can schedule tasks like this.

Willy.

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this application as job in windows scheduler. In every day of week time to
run create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR

Nov 16 '05 #2
Thanks,
But this not full good idea because, how read shedules?
Do you thing about parse cmd?
PawelR
Użytkownik "Willy Denoyette [MVP]" <wi*************@pandora.be> napisał w
wiadomości news:e8**************@TK2MSFTNGP09.phx.gbl...
Why would you write a program to do this, just create the job from the
commandline (using schtasks.exe on XP and W2K3, at.exe on other).
When you really need to do this from your program you can simply use
Process.Start to create the job. Note that only administrators, power
users and backup operators can schedule tasks like this.

Willy.

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this application as job in windows scheduler. In every day of week time
to run create report is different (ex. Monday 7:00 pm, Thusday 7:30 am
etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR


Nov 16 '05 #3
On Mon, 15 Nov 2004 12:43:47 +0100, PawelR wrote:
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run this
application as job in windows scheduler. In every day of week time to run
create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR


Please read Mr. David Hall's article on CodeProject.
http://www.codeproject.com/csharp/TSNewLib.asp

// Anders
Nov 16 '05 #4
If I understand you correctly, your application will create a report but you
don't want to run it immediately.

I would search to see if there is an interface (Automation, or WMI probably)
to the scheduler, however, you may have problems accessing the scheduler
unless the user running your app has sufficient privileges.

Personally I would think about creating a Windows Service to run on the same
machine and just send it a message via Remoting and let it handle running
the report. In the long run it would probably give you a lot more control
and flexibility.

--Bob

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this application as job in windows scheduler. In every day of week time to
run create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR

Nov 16 '05 #5
thanx Anders
This is good article.

Użytkownik "Anders Eriksson" <an*************@morateknikutveckling.se>
napisał w wiadomości news:g4**************@morateknikutveckling.se...
On Mon, 15 Nov 2004 12:43:47 +0100, PawelR wrote:
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this
application as job in windows scheduler. In every day of week time to run
create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR


Please read Mr. David Hall's article on CodeProject.
http://www.codeproject.com/csharp/TSNewLib.asp

// Anders

Nov 16 '05 #6
Thanx Bob

You andersand me correctly,
Maybe I use windows services, but I never created this type of application
:) and I have short time to run this application.

PawelR
Użytkownik "Bob Grommes" <bo*@bobgrommes.com> napisał w wiadomości
news:%2****************@TK2MSFTNGP11.phx.gbl...
If I understand you correctly, your application will create a report but
you don't want to run it immediately.

I would search to see if there is an interface (Automation, or WMI
probably) to the scheduler, however, you may have problems accessing the
scheduler unless the user running your app has sufficient privileges.

Personally I would think about creating a Windows Service to run on the
same machine and just send it a message via Remoting and let it handle
running the report. In the long run it would probably give you a lot more
control and flexibility.

--Bob

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this application as job in windows scheduler. In every day of week time
to run create report is different (ex. Monday 7:00 pm, Thusday 7:30 am
etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR


Nov 16 '05 #7
have a look at http://www.mvps.org/emorcillo/dotnet...asksched.shtml

--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"PawelR" <pa************@poczta.onet.pl> wrote in message
news:up**************@TK2MSFTNGP11.phx.gbl...
Hello group,
Sorry, My English is very little.
I have qustion about windows scheduler.
My application create report and send this report to users. I want run
this application as job in windows scheduler. In every day of week time to
run create report is different (ex. Monday 7:00 pm, Thusday 7:30 am etc.)
How form my application add new job to windows scheduler and remove same
job?
How managment job is scheduler?
Maybe sombody have another idea?

Thx
PawelR

Nov 16 '05 #8

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

Similar topics

4
by: Leigh Riley | last post by:
Hi there, Can anyone tell if there's a solution to this for a Windows environment? If this was running under Linux, it would be a problem, but... I have a php script that when run, examines a...
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...
0
by: winking | last post by:
Hello. I write a windows service project with C sharp, yeah, a trouble contact me while i design a GUI configuration for my service, which i hope that it would be like microsoft windows IIS...
0
by: deploying visual basic .net application | last post by:
Hi There, I'm trying to create a setup for a Windows application to install my application I developed using Visual basic .net. I'm using Visual Studio .net Professional. When I use the Set up...
1
by: Jerry | last post by:
Hii some of my sites which is working perfectly on Windows 2000 But when i tried the same thing from Windows 2003, it gives me error.. I am using IIS 6.0 By the way i am getting an error...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
0
by: cyshao | last post by:
Hi, My Friends: I have a program and I want to let machine automaticly auto it by using Windows task schedule. Sure, I can manually Create/Modify task in Windows task schedule. But I also hope...
5
by: Ronald S. Cook | last post by:
I need ideas on how to best design a Windows form for my particular situation. On a cattle feeding yard there will be between about 300 and 600 pens. On my "Pen Feeding Sequence" form, I want...
3
by: BLUE | last post by:
I've to call 2 web method from time to time so that the web service will do cleanup and sync jobs on a database. These methods can be called once every X days where X >= Y for the sync method...
0
by: kkkanoor | last post by:
I am trying to schedule tasks in Windows from my C# program. The tasks get listed in Windows Schedule Tasks list, but it is not getting invoked. It seems I need to give the user name and password to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.