Subject: RE: Automachron as an NT Service Date: Fri, 2 Jul 1999 15:48:03 -0400 From: Mark Drissel To: steeve@oneguycoding.com > -----Original Message----- > From: Steeve McCauley [SMTP:steeve@oneguycoding.com] > Sent: Friday, July 02, 1999 3:17 PM > To: Mark Drissel > Subject: Re: Automachron as an NT Service > > > Hi Mark, > >> > Mark Drissel wrote: >> > >> > >> FYI, I have installed your app as a service using Microsoft's servany.exe >> > >> from the NT Resource Kit. For the benefit of others, the /s has to be used >> > >> when running with servany.exe, for obvious reasons. >> > >> >Perhaps you could elabourate. Is this program freeware or >> >public domain or whatever Microsoft's lawyers might brand >> >one of their apps which is freely available? >> >> From what I can tell, you have to buy the NT Resource Kit. It's not >> a sophisticated a tool so I would wager someone has already written a >> similar tool. You install it as a service and then you enter the name of the >> application, parameters and the default directory in the registry. When I if >> first tried using it with Automachron, the settings weren't being saved. I >> could see the saved settings in the HKCU so I took a shot and tried it with >> the /s option and everything seemed to work. > >Ah, now it's coming back to me. The /s switch is *my* switch. I >thought you were talking about a switch to servany. Using the /s >switch in this situation would seem to be appropriate. Then I could >recommend setting up achron as a service as follows, > >- run 'achron /s' >- setup the thing with the appropriate server, sync rate, etc >- exit achron >- run 'achron /s' using servany The last step is more like: start the srvany process that runs 'achron' using the AppParameter '/s' AppParameter is one the registry values you set for srvany. That way should work. I did it a little differently. I checked the "Allow Service to Interact with Desktop" in the service startup options. With srvany setup to start achron with the /s option (and desktop interaction allowed), I am able to configure achron however I want. The only problem with allowing interaction with the desktop is that I can accidentally close the app (but the service will continue running). I haven't tried not allowing desktop interaction; it may still allow you to close the app. >Correct me if I'm completely off base, or even just a bit >off base (Go Expos! :) --Mark ps. Go Orioles!