Hi folks,
(note: Newbie post)
I have inherited the code maintenance and development of an existing
internal webservice written in c#. It's a fairly standard client, appserver,
dbserver architecture and essentially determines an employees to do list. I
has been developed in Visual studio, which is new for me as well.
I am required to add the ability for the application to email reminders to
employees if their tasks are overdue.
I can determine the list of user's emails from the database using a
'get_overdue_email' stored procedure.
What I need to write is a executable, that can be run from the commandline
for example: C:>emaildemon \60 which invokes my executable, runs the stored
procedure every 60 minutes, calls the mailer passing the list of users and
appropriate subject etc etc. Note the demon will continue to run every 60
mins, until a C:>emaildemon \stop command is issued so some kind of
'sleep' state needs to be entered.
Can anyone point me in the direction of an example project or code example,
which I can base my app on.
Any tips or suggestions... the functionality is pretty much as described,
the implementation (i.e. command line) is not at all fixed.
Thanks
Tom 5 1360
Tom <re***@list.please> wrote: (note: Newbie post)
I have inherited the code maintenance and development of an existing internal webservice written in c#. It's a fairly standard client, appserver, dbserver architecture and essentially determines an employees to do list. I has been developed in Visual studio, which is new for me as well.
I am required to add the ability for the application to email reminders to employees if their tasks are overdue.
I can determine the list of user's emails from the database using a 'get_overdue_email' stored procedure.
What I need to write is a executable, that can be run from the commandline for example: C:>emaildemon \60 which invokes my executable, runs the stored procedure every 60 minutes, calls the mailer passing the list of users and appropriate subject etc etc. Note the demon will continue to run every 60 mins, until a C:>emaildemon \stop command is issued so some kind of 'sleep' state needs to be entered.
Can anyone point me in the direction of an example project or code example, which I can base my app on.
Any tips or suggestions... the functionality is pretty much as described, the implementation (i.e. command line) is not at all fixed.
It sounds like what you *really* want is a Windows service, which is
pretty easy to write in .NET. You could have a command line app to
start/stop/configure it if absolutely necessary, but you can do pretty
much everything use net start/stop anyway.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jon,
I've done some reading, and this does sound like what I want... One more
question
My web application has a webbased administrative logon, for things like
entering new users into the database . Will it be possible to stop and start
windows services on my app server machine from a client browser?
thanks
Tom
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... Tom <re***@list.please> wrote: (note: Newbie post)
I have inherited the code maintenance and development of an existing internal webservice written in c#. It's a fairly standard client,
appserver, dbserver architecture and essentially determines an employees to do
list. I has been developed in Visual studio, which is new for me as well.
I am required to add the ability for the application to email reminders
to employees if their tasks are overdue.
I can determine the list of user's emails from the database using a 'get_overdue_email' stored procedure.
What I need to write is a executable, that can be run from the
commandline for example: C:>emaildemon \60 which invokes my executable, runs the
stored procedure every 60 minutes, calls the mailer passing the list of users
and appropriate subject etc etc. Note the demon will continue to run every
60 mins, until a C:>emaildemon \stop command is issued so some kind of 'sleep' state needs to be entered.
Can anyone point me in the direction of an example project or code
example, which I can base my app on.
Any tips or suggestions... the functionality is pretty much as
described, the implementation (i.e. command line) is not at all fixed.
It sounds like what you *really* want is a Windows service, which is pretty easy to write in .NET. You could have a command line app to start/stop/configure it if absolutely necessary, but you can do pretty much everything use net start/stop anyway.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
Tom <re***@list.please> wrote: I've done some reading, and this does sound like what I want... One more question
My web application has a webbased administrative logon, for things like entering new users into the database . Will it be possible to stop and start windows services on my app server machine from a client browser?
Well, I don't know what programmatic access there is to the windows
services, but you could always run "net stop" or "net start" (with
appropriate parameters) using the Process class.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... Well, I don't know what programmatic access there is to the windows services, but you could always run "net stop" or "net start" (with appropriate parameters) using the Process class.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
The System.ServiceProcess.ServiceController class would be the "programmatic
access" solution. It has methods for starting, stopping, pausing,
continuing, etc, etc... a windows service.
Good luck,
Ryan LaNeve
MCSD.NET
Thanks for your help
"Ryan LaNeve" <rl*****@noaviincspam.com> wrote in message
news:#y**************@TK2MSFTNGP09.phx.gbl... "Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message news:MP************************@msnews.microsoft.c om... Well, I don't know what programmatic access there is to the windows services, but you could always run "net stop" or "net start" (with appropriate parameters) using the Process class.
-- Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too The System.ServiceProcess.ServiceController class would be the
"programmatic access" solution. It has methods for starting, stopping, pausing, continuing, etc, etc... a windows service.
Good luck, Ryan LaNeve MCSD.NET
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: none |
last post by:
Howdy all,
I'm wondering if someone could give some direction on a problem I have
or share their experiences.
I'm wanting to create a little PHP application that will run on a
local machine...
|
by: David Pendrey |
last post by:
I was wondering if it is at all posible to write a stand alone .EXE program
in Visual Studio .NET. Hopefully in VB.NET but if not another language would
be ok. Thanks for the assistance
|
by: Todd D. Levy |
last post by:
What do I need to get (from Microsoft I assume) in order to distribute
stand alone Access applications to people who do not (and will not) have
Access installed on their systems?
I have heard...
|
by: Roman Yankin |
last post by:
Hello All,
Is there a way to compile C# windows application as a stand alone program?
In my univ class we don't have VS.NET installed and I need to have my
executable running with out .NET...
|
by: Tom |
last post by:
Hi folks,
(note: Newbie post)
I have inherited the code maintenance and development of an existing
internal webservice written in c#. It's a fairly standard client, appserver,
dbserver...
|
by: David S. Zuza |
last post by:
Does anybody know if it is possible to develop stand alone vb2005 apps that
require no install and could be run from a flash drive or cd? If so I am
trying to figure it out.
thanx in advance.
|
by: samfori |
last post by:
i'm just new and i want to know how to build a stand alone program (executable)from scripts of C++ code i.e. from .h and .cpp files
|
by: Zehra Ali |
last post by:
I was wondering if anyone knew how one could go about developing a stand alone executable version of a web based application written in Java . Currently we are using Net beans platform. The...
|
by: jinalpatel |
last post by:
We have access database which is stand alone application. It is sitted at 21 different locations including one main office. Every month the transactions are copied in to disk and sent to the main...
|
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...
|
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...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
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...
|
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)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
| |