473,657 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2343
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******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP11.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************ *@morateknikutv eckling.se>
napisał w wiadomo¶ci news:g4******** ******@moratekn ikutveckling.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******** ********@TK2MSF TNGP11.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******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP11.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
8219
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 file, and then updates a local database. I would like to run this script (in the background - not in a browser window) via the command line every e.g. 100 seconds - any ideas?
11
4074
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 in the Task Scheduler for Windows? Basically I'm after something that'll allow me to specify a "recurring" or "once off" schedule with advanced options like "the first monday in the month" etc.
0
1214
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 controllor in MMC, but actually, I accomplished the service without configuration and have no idea about what I can do next! In my project I write a service to do mutliple tasks by schedule, and the time schedule was saved on a xml file, as my thought,...
0
1627
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 wizard. I only have 4 steps, when I look at exaple to create a setup file I find I should have 5 steps. One step Step 3 of 5 is missing in my steps ( Choose project outputs to Include. I don't have this step in my wizard. I am not sure why. I went...
1
1365
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 80005000 login error. Any help on this will be greatly appreciated..
6
1818
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 2000 server and have 'secure' network access? I would love to use VS.NET to access both windows and Unix/Linux xml files.
0
1948
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 to Create/Modify tasks by programming, for another program want to generate many tasks. Could you tell how to control windows task schedule by programming ? Thanks
5
1518
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 the user to be able to setup and maintain the order in which the pens should be fed (ultimately in the Pen table is a column named Sequence that gets an interger value). So on the form...
3
16220
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 and X >= Z Y for the cleanup method with Y and Z specified by the user in the app.config file. Is it best to create a web service client app and schedule it with Windows Scheduler or to create a web service client Windows Service that will use a...
0
8152
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 start the task OR I have to set the property "RunOnlyIfLoggedOn" to true. But I don't know how to do this. Please help. The following code I used is posted in one of the forums. Please find the code below. --- CODE --- simply use...
0
8397
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7333
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.