473,406 Members | 2,352 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,406 software developers and data experts.

Scheduling using C# Windows application

Hai,
I was new to this topic and I want to start a windows service in .net windows application. On particular time note pad should be get opened. And so I want to schedule that. Can any one help me regarding this.


Thanku
akingsly
Sep 26 '08 #1
6 3925
Follow this link as given "http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-sharp-dot-NET/1/"

It has a lesson o f 5 pages.

This is for 2003 version in 2005 slight diff is there.

after reading above lesson do like this.

First do directlt with out any modifing service. Do as it with service1 only.
Change servicetype from manually to automatic.
Just add the code in program1. for creating file and as well as in service1 for timer same as mentioned in lesson.

and follow the remaining steps for installation.
Sep 26 '08 #2
Thanku for u r reply.
One more issue. I tried this as it was given and I'm getting one error.

Here the file is not creating and the following error message is displaying.

The TimeServive(Service name) on Local Computer Started And Then stopped. Some Services stop Automatically if they have no work to do, for example , the performance logs and alerts service.

Can u pls tell me why it's happening.

thanku
akinglsy
Sep 26 '08 #3
Ok fine, a file was created. Now I want to open that created file at a particular time when the service is started.

Can u pls help me.

Thanks
akingsly
Sep 26 '08 #4
PRR
750 Expert 512MB
Hai,
I was new to this topic and I want to start a windows service in .net windows application. On particular time note pad should be get opened. And so I want to schedule that. Can any one help me regarding this.
Thanku
akingsly
windows service run in their own session... they do not and should not interact with GUI...(normally) You can write to log files and do other processing with windows service...i dint understand this :
note pad should be get opened ??
should it be opened in GUI? or just you want to write a log to it..
Sep 26 '08 #5
windows service run in their own session... they do not and should not interact with GUI...(normally) You can write to log files and do other processing with windows service...i dint understand this :
note pad should be get opened ??
should it be opened in GUI? or just you want to write a log to it..
Thanku for u r information.

I want to write a log file to it and a notepad.exe should open at a particular given time when the service is started

akingsly
Sep 26 '08 #6
PRR
750 Expert 512MB
Thanku for u r information.

I want to write a log file to it and a notepad.exe should open at a particular given time when the service is started

akingsly
it will be open... but wont be visible to the "logged in" user,assuming theres a user logged in (he wont see the notepad on his screen)... as its in a different session... if you look into task manager .. you will find notepad.exe running....you can log info into it n save it.....
Sep 26 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: m3ckon | last post by:
Hi, I want to schedule a backup of three databases on a daily basis. I've written the code to run the 3 backups in TSQL and was wondering how best to automate this procedure? Should I put...
6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
13
by: Mike | last post by:
Normally scheduling a job is a very elementary operation but for some hidden reason I've been unable to schedule a job which runs on a 28 day cycle, even though I have at least 16 other jobs...
1
by: Newbie | last post by:
Could somebody please tell me whether it is possible to create a custom .NET application capable of scheduling Crystal Reports to execute at a certain point in time? I have a book explaining how...
3
by: Muscha | last post by:
Hi, In our application we need to have a high performance scheduling framework. We want to be able to say for item 21 do an update on such and such time. We will have around 1 million items of...
3
by: mirek | last post by:
Hello, My ASP.NET application must have additional functionality which isn't typical for ordinary web use. It is: - connecting to the other server using specified protocol (an option to...
3
by: Alphonse Giambrone | last post by:
Can anyone point me toward a good example of an asp.net scheduling app? Preferrably in vb.net. TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us
1
by: Majed | last post by:
hi I'm planing to make scheduling app and need your advice on the best way to do that,and how to save the tasks to be executed and retrive their data at the right time. your input will be highly...
0
by: Lemune | last post by:
Hello. I need some help on building my sms services application (using modem). My application is to do some scheduling task based on daily, weekly and monthly. On the daily the choice are everyday,...
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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
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...

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.