Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinNT Service
Message
From
15/09/1999 09:17:37
 
 
To
15/09/1999 08:44:47
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00264684
Message ID:
00264886
Views:
19
Greg, Here it is, Also here is the link for VFUG FAQ, Sorry I think I gave the wrong URL . Here is the corrected information. http://www.faqtory.com/VFUG/main.jsp


Question
How do I make Visual FoxPro run as a service on Windows NT?

Answer
There are several reasons to make an application run as a service on Windows NT. However, it may not be applicable to all applications.
Running an application as a service will allow the Windows NT to load your application at startup without requiring a login. Also, I have found that some applications might run a little better, especially those using a lot of events like socket programming.

If you have the ressource kit, you will find 3 files called SRVANY.EXE, SRVANY.WRI and INSTSRV.EXE.

Switch to the directory where INSTSRV.EXE is
Install a new service giving it the name of the Visual FoxPro service and the full location of srvany.exe: instsrv VFPServer c:\tools\srvany.exe
Go in control panel, open the services window and make the necessary adjustements for VFPServer
Access the registry
Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService: create a ''Parameters'' key
Under the above key, create an ''Application'' value of type REG_SZ and specify the full path of your executable: Application: REG_SZ: D:\TOOLS\VI.EXE
Under the above key, create an ''AppDirectory'' value of type REG_SZ and specify the current directory to use for the executable: AppDirectory: REG_SZ: C:\TMP
You may now return to the control panel and try to start the service.


OTHER VISITORS RECOMMEND...
Where can I get support for VFP?
If MS made an Open Letter to the FoxPro Community, what would it say?
Is there an easy way to use the windows login/password authentication to allow/restrict user access to different areas of my application? Or do I have to set up password restrictions within the application. Thanks.
THIS FAQ CAN BE FOUND IN THESE TOPICS
FAQS : General
Previous
Reply
Map
View

Click here to load this message in the networking platform