I have used Autoexnt in the past to do this. It starts a program as a service, then displays the GUI whenever a user logs in.
http://support.microsoft.com/kb/243486You can get it from the 2003 resource kit tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=enDepending on your setup, you may have to setup dependencies on other services that need to start before your application
http://support.microsoft.com/kb/193888It's been a while and I was at a different company, so sorry the details are sketchy. This should get you started though.
Ken
>>
>>I didn't try your code because it doesn't make much sense to me. The windows service is run on background w/o GUI and all your code relies on GUI presented. If you want to run it with GUI why bother with turning it into a service?
>>My suggestion stays. Get Calvin's code to work, understand it and move from there.
>
>Hi Sergey,
>
>PMFJI an old thread. But I was searching through messages regarding running a VFP app as a service and came across your message. Above is a segment of your reply to Fernando Alvares.
>
>But I was wondering concerning your words about GUI and service. You see I have a small app that does have a GUI part (basically a form with a timer that converts text input into VFP database). The customer asked me to look into converting this application to a service. His reasoning was that often times he reboots the server (where the app resides) and forgets to log in and start the application. He said that if the app would run as a service, no log in would be required.
>
>My question to you is, will the application that
does have a GUI part work as a service?
>
>Thank you.