[go-nuts] Re: Can anyone provide an example or stopping and/or starting an established Windows service?

2017-02-21 Thread akcorr
Sorry. Yes, The package is up to date. I did a 'go get' on the package on Feb 17. I'm running version 1.73. Will get on with gdb. Thanks for your help! I really appreciate it! On Saturday, February 18, 2017 at 6:05:57 AM UTC-5, Egon wrote: > > Just checking whether I got my message across

[go-nuts] Re: Can anyone provide an example or stopping and/or starting an established Windows service?

2017-02-18 Thread akcorr
Same thing. Code runs and I get nothing. That's really weird. On Friday, February 17, 2017 at 3:06:47 PM UTC-5, akc...@gmail.com wrote: > > I copied your code from playground. I will make that change and let you > know. > > > On Friday, February 17, 2017 at 2:07:38 PM UTC-5, Egon wrote: >> >>

[go-nuts] Re: Can anyone provide an example or stopping and/or starting an established Windows service?

2017-02-17 Thread akcorr
I copied your code from playground. I will make that change and let you know. On Friday, February 17, 2017 at 2:07:38 PM UTC-5, Egon wrote: > > Is your code up to date? > What happens, if you do: > fmt.Println(service, err) > fmt.Println(service.Config()) > > On Friday, 17 February 2017 20:42:0

[go-nuts] Re: Can anyone provide an example or stopping and/or starting an established Windows service?

2017-02-17 Thread akcorr
What's driving me crazy is that if I change the name of the service being passed to something like "thisdoesnotexist" I don't get an error. I would expect to see a error when it reaches this line in the function: service, err := manager.OpenService(name) if err != nil { return fmt.Error

[go-nuts] Can anyone provide an example or stopping and/or starting an established Windows service?

2017-02-17 Thread akcorr
I've just started learning the language and went through some of the packages that deal with file operations and that went well. Has anyone had experience with starting and stopping windows services? I went and ran a go get on package: "golang.org/x/sys/windows/svc/mgr". Looking around and t