473,516 Members | 3,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Service" vs. "Program"?

RDI
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI
Nov 20 '05 #1
14 2384
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI

Nov 20 '05 #2
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI

Nov 20 '05 #3
On Mon, 5 Apr 2004 13:23:11 -0400, RDI wrote:
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?


I don't know about resource use. I don't think it would use any more
resources. It just adds an entry into the registry so the service control
manager can start it. If you only place it in the startup folder, it will
only be started when someone logs in to the machine. If you want it to run
when the machine boots, whether or not someone logs on, you should write it
as a service.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #4
On Mon, 5 Apr 2004 13:23:11 -0400, RDI wrote:
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?


I don't know about resource use. I don't think it would use any more
resources. It just adds an entry into the registry so the service control
manager can start it. If you only place it in the startup folder, it will
only be started when someone logs in to the machine. If you want it to run
when the machine boots, whether or not someone logs on, you should write it
as a service.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #5
Hi

I am new to using regular expressions in VB.NET, and need a bit of help.

I am trying to parse a string that looks like this:
~datastart some variable numbers, characters and spaces of unknown length~
to get this
~datastart~

I tried this:
strWorkingData = Regex.Replace(strWorkingData, "~datastart*~",
"~datastart~")
but it returned the starting value

Any help would be appreciated (including any good resources on how to use
regular expressions)

Thanks for the help

Derrick
Nov 20 '05 #6
Hi

I am new to using regular expressions in VB.NET, and need a bit of help.

I am trying to parse a string that looks like this:
~datastart some variable numbers, characters and spaces of unknown length~
to get this
~datastart~

I tried this:
strWorkingData = Regex.Replace(strWorkingData, "~datastart*~",
"~datastart~")
but it returned the starting value

Any help would be appreciated (including any good resources on how to use
regular expressions)

Thanks for the help

Derrick
Nov 20 '05 #7
One option is to write it as a program, then use Scheduled Tasks to start
the program. One of the options is to start the program "when my computer
starts."

Richard Rosenheim

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI


Nov 20 '05 #8
One option is to write it as a program, then use Scheduled Tasks to start
the program. One of the options is to start the program "when my computer
starts."

Richard Rosenheim

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI


Nov 20 '05 #9
RDI
Ok--I understand that. If that's the only thing, I'll make a scheduled task
that runs "At Startup". That runs even when nobody has logged on.

Thanks.

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI


Nov 20 '05 #10
RDI
Ok--I understand that. If that's the only thing, I'll make a scheduled task
that runs "At Startup". That runs even when nobody has logged on.

Thanks.

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI


Nov 20 '05 #11
RDI
PS--This will initially be running on a Win98 machine.

"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI

Nov 20 '05 #12
RDI
PS--This will initially be running on a Win98 machine.

"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a
spare PC.

If I don't write it as an actual "Service" but just a program that starts
via the startup folder, will that use any more (or less) resources than
doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI

Nov 20 '05 #13
RDI
Well Richard,

We seem to have had the same thought on the subject.

"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:ug**************@TK2MSFTNGP09.phx.gbl...
One option is to write it as a program, then use Scheduled Tasks to start
the program. One of the options is to start the program "when my computer
starts."

Richard Rosenheim

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI



Nov 20 '05 #14
RDI
Well Richard,

We seem to have had the same thought on the subject.

"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:ug**************@TK2MSFTNGP09.phx.gbl...
One option is to write it as a program, then use Scheduled Tasks to start
the program. One of the options is to start the program "when my computer
starts."

Richard Rosenheim

"Thomas" <no****@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
If it's a program, it's required that the user actually logs on to the
computer.
A service allways start when the computer starts.

If you have a program that needs to run unattended and needs to start
wverytime the computer is rebooted, go with a service.
"RDI" <RD*@IHateSpam.com> wrote in message
news:Oy**************@TK2MSFTNGP11.phx.gbl...
I'm in the process of wiritng a custom AutoResponder that will run on a spare PC.

If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than doing it as a Service?

Is it worth the extra effort to do it as a service?

--
RDI



Nov 20 '05 #15

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

Similar topics

1
3617
by: Chris | last post by:
I built small C# Web and Web Service applications in a training class last week. The applications worked in the class, but when I tried to run them again over the weekend, they both bombed. Instead of getting my Web page, or the Web Service page, I get a page full of error text (below). I am hoping the anwser will be obvious to someone. ...
1
4396
by: Mary Kerrigan | last post by:
I'm tearing out my freakin' hair on this one. Trying to deploy an ASP.NET site on a Windows 2000 Advanced Server. The framework v1.0.3705 was already installed, not by me. When I tried to get to a page that accesses data, I get this error, that begins with: "Cannot execute a program. The command being executed was...
14
297
by: RDI | last post by:
I'm in the process of wiritng a custom AutoResponder that will run on a spare PC. If I don't write it as an actual "Service" but just a program that starts via the startup folder, will that use any more (or less) resources than doing it as a Service? Is it worth the extra effort to do it as a service? --
4
2346
by: SH | last post by:
I wish to create a program (really a Windows Service) that sits and waits for a client PC to communicate with it, but I can't come up with a good method of doing so. I want to have a service running on a server, waiting for clients to send it commands. The service would then do something based on the command and send the information back to...
2
2670
by: domtam | last post by:
Hi there. My goal is to write a windows service that can act as HTTP Request server. How can I do that? I know that I can use ASP.NET to develop a web site to achieve this purpose, i.e. receive HTTP request. However, I'd like it to exist in the form of a "Windows Service".
0
2109
by: JM | last post by:
I have created simple windows service which just write message to event log when it starts and stops. I am able to install it succesfully using: installutil <service_file.exe>, where <service_file.exeis the executable of the service. (Thanks to Rohan). But I want to install it using VS 2005 Setup project and I am unable to do that. I...
1
6554
by: =?Utf-8?B?cm9zczYxMw==?= | last post by:
I'm puzzled by an error message encountered while creating a Windows Service. In particular, I'm creating a second Windows Service within a Windows Service project, using Visual Studio 2005. The first service works fine. The second service appears to be registered correctly; yet I get the "System error 1083 has occurred." doing a "NET START...
0
7182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7405
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. ...
0
7574
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7136
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...
0
5712
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...
1
5106
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...
0
3265
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...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.