PDA

View Full Version : Service Controls



Begbie5000
10-13-2001, 02:53 AM
hi there i want to run a program as a service, this is no problem, but stopping the command using the control available in the services console doesnt seem to be possible.

I can run this command as a service
%systemroot%\system32\rasphone.exe
params= -d ADSL

This is fine and my connection is established a service. but to stop the service requires different prams.
to stop i need to run this command

%systemroot%\system32\rasphone.exe
params= -h ADSL

Is there a way i can get the STOP service command in the MMC services console to run my stop command?


Does anyone know of a better site that specialises in win2k/nt services?<P ID="edit"><FONT class="small">Edited by Begbie5000 on 10/12/01 21:09.</FONT></P>

RWSchlatter
10-13-2001, 01:20 PM
(moved to General WinNT/2K forum from Registry )

______________
Regards - Richard

RWSchlatter
10-13-2001, 02:24 PM
depending if you need the connection running only while a user is logged in:
on Win2K you can define both a login and a logoff script. put the two entries in these scripts.

______________
Regards - Richard