Hi, People. What one can do with services.
Well, I managed to start, stop, pause nt service programm. But what
one can do practically with this. And where on the web to find
information what to do with services.
Tnx in advance.
As with any other Microsoft Technology. goto MSDN.
Common NT Services: SQL Server, Oracle, IIS, Apache, Tomcat, COM+. To check out what NT services are running on your NT/2000/XP/2003 Server box, open up the Administrative Tools and select Services.
Writing a service in .NET or VB6 is easy. Haven't done it in C++.
Services can be set to run with specific rights. Services can also be set to start automatically or manually.
Alternatives:
You can also run an executable with custom rights using the "runas"
RUNAS USAGE:
RUNAS [/profile] [/env] [/netonly] /user:<UserName> program
/profile if the user's profile needs to be loaded
/env to use current environment instead of user's.
/netonly use if the credentials specified are for remote access only.
/user <UserName> should be in form USER@DOMAIN or DOMAIN\USER
program command line for EXE. See below for examples
NOTE: Enter user's password only when prompted.
NOTE: USER@DOMAIN is not compatible with /netonly.
You can fire up an executable with @ command, or Scheduler.
You can fire up an executable when the system starts with a registry hack to //hkey_local_machine/Software/Microsoft/Windows/CurrentVersion/Run or //hkey_local_machine/Software/Microsoft/Windows/CurrentVersion/RunOnce
Well, thanks. Can I implement some clock utility which is running like service. For example: I want to create some
clock-alarm which will fire as some date approches. Some kind remider of some data which is important to me. Something like this. I create some GUI application which will set some
date alarms. Then I close this application. When the date is occured a message box alert me(that will be done by service program).
Or another example: I want that when I dial-up to Internet
time which I'm in on-line is recorded in some file in order to control how much time I was there. That's the point why I'm interested in services. In other words I need some simple and clear usage of services to understad them.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.