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

Using Windows Services

Hi,

I have developed a vb.net assembly which I use in existing asp.net pages. I
also want to execute it every night at 12.
I am new to windows services. Can anyone guide how to execute this program
using windows services only once every day at 12 in the night. Any pointers
to code samples would be a great help.

Thanks,

Srinivas


Nov 18 '05 #1
2 823
Write a Service that has a Timer in it. Set the timer interval to whatever
value you want for the timer to run at, and start the Timer in the OnStart
event of the Service. Then set an Event Handler in the Service that handles
the Elapsed event of the timer. Have the Event Handler run your functions.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Srinivas" <an********@NO.JUNK.MAIL> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
Hi,

I have developed a vb.net assembly which I use in existing asp.net pages. I also want to execute it every night at 12.
I am new to windows services. Can anyone guide how to execute this program
using windows services only once every day at 12 in the night. Any pointers to code samples would be a great help.

Thanks,

Srinivas

Nov 18 '05 #2
Thanks Kevin.

If it is possible can you please let me know where I can find similar sort
of code samples on the net.

Thanks

Srinivas

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
Write a Service that has a Timer in it. Set the timer interval to whatever
value you want for the timer to run at, and start the Timer in the OnStart
event of the Service. Then set an Event Handler in the Service that handles the Elapsed event of the timer. Have the Event Handler run your functions.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Srinivas" <an********@NO.JUNK.MAIL> wrote in message
news:uV*************@TK2MSFTNGP11.phx.gbl...
Hi,

I have developed a vb.net assembly which I use in existing asp.net pages.
I
also want to execute it every night at 12.
I am new to windows services. Can anyone guide how to execute this

program using windows services only once every day at 12 in the night. Any

pointers
to code samples would be a great help.

Thanks,

Srinivas


Nov 18 '05 #3

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

Similar topics

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...
3
by: Jay-nospam | last post by:
Hi there, I am having trouble getting an ASP.NET web application to connect to another computer and passing the proper credentials and I hope someone can help me. I have a stand-alone Windows...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
5
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
This code works fine in Windows Application. In Windows Application, I am able to zip the image files properly and it totally contains 900MB My problem is the same code which I used in my Windows...
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.