and how would I start/stop them?

any way this can be done from the command line interface?


Posted on 2003-04-29 03:53:47 by Azrim
"net start", "net stop".

Programatically, look up OpenSCManager and continue from there.
Posted on 2003-04-29 04:21:46 by f0dder
tnx man :alright: ,"net" what a stupid name for a "service manager tool" :(
Posted on 2003-04-29 04:38:08 by Azrim
I don't really get it either - there might be some twisted logic behind it :confused:
Posted on 2003-04-29 04:39:27 by f0dder
I guess the guys from micro* used the network card to implement service management :grin:
Posted on 2003-04-29 06:04:53 by Azrim
net a pre-pre-pre alpha version of Posted on 2003-04-29 10:38:34 by scientica

Perhaps services was first used only for netoworking, and then on later versions the net command just tagged along for compabillity and no better console replacement?

My guess too.
Posted on 2003-04-29 10:43:12 by f0dder
here's a sample program. :grin:

just change the rights to suit your need, this one will list all ACTIVE processes.

tested on win2k sp3
Posted on 2003-04-29 12:22:07 by arkane
oops I think I made a mistake...

I was reading a site about listing win2k services and I was also reading this thread at the same time and thought of the same thing... my mistake...

you want to stop/start services also... the example above is incomplete... gee!!! :grin:
Posted on 2003-04-29 17:03:03 by arkane
I fixed it.

This one will list all services ACTIVE and INACTIVE and as a test piece this will activate(start) the Task Scheduler service when it is Inactive(stopped) and vice versa. :grin:

of course you can also use ShellExecute(much easier) with - servicename as suggested by f0dder.
Posted on 2003-04-29 17:53:10 by arkane
Posted on 2003-05-20 06:01:51 by Azrim
Well here is a port a did awhile back.
its cynnicle pinnicles beep serv ported to spasm.

I also have a START STOP app called addremove in there.
It will add and start, or stop and delete services.

its written in spasm ,but its easy to understand.

Note: spasm sources are inside the exe, open the exe in spasm.
If this is a problem I'll just make the source availible.

I could rewrite it if needed but its so easy to understand, absoluty no need to shellexecute anything.
Posted on 2003-05-20 08:30:36 by RobotBob
Thanks, the code is understandable, opened it with ultraedit.
Posted on 2003-05-20 08:47:58 by Azrim