Link to home
Start Free TrialLog in
Avatar of bryan7
bryan7Flag for Japan

asked on

How to start a service

How can I start a win xp service ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
in command prompt type:
net start <service name>
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bryan7

ASKER

Thanks, I get an error doing it programatically:

  ss.dwCurrentState := -1;

Constant expression violates subrange bounds.
Avatar of bryan7

ASKER

According to MSDN, guess it should be 0 or anything above it ?

dwCurrentState
Indicates the current state of the service. One of the following values is specified: Value Meaning
SERVICE_STOPPED The service is not running.
SERVICE_START_PENDING The service is starting.
SERVICE_STOP_PENDING The service is stopping.
SERVICE_RUNNING The service is running.
SERVICE_CONTINUE_PENDING The service continue is pending.
SERVICE_PAUSE_PENDING The service pause is pending.
SERVICE_PAUSED The service is paused.
put it 0 (or SERVICE_STOPPED)
Avatar of bryan7

ASKER

Umm can't split points ? there used to be a way I think .. ?
Look after the last comment, there is a link to split the points
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bryan7

ASKER

wow nice help :) I will split 30/3 A graded, but I can't see the split button, only Accept :?
the split link is below the last comment
Avatar of bryan7

ASKER

Maybe I have to accept an answer first ?
I'm not sure. In my case, the screen shot is made for my only question that I have here on EE and the split link is there. I don't know what you might have done that those increase points appeared. sorry
No. either you accept a single comment as answer using the button along the comment, or you use the split points link, where you mark 1 comment as answer and distribute the points among all the comments (except yours, of course)
Avatar of bryan7

ASKER

but there's no such link somehow :S
There should be one, for any questioner:
https://www.experts-exchange.com/help.jsp#hi19

If really you cannot find it, please ask a question in the community support topic area, a moderator will assist you then.
Avatar of anorganix
anorganix

After quickly going thru the help section, I found that if you use the split option, the minimum amount of points you can give to someone is 20.

So (if I'm not wrong) to split 30/3 means 10 points each -> not possible :(
To check it out, use angelIII's link:
https://www.experts-exchange.com/help.jsp#hi19
anorganix, good point!

bryan7, to split points among 3 comments, you have to increase to at least 60 points.
Avatar of bryan7

ASKER

Oh I see, well raising to 60 then =)
Avatar of bryan7

ASKER

Thanks :)
Glad we could help