To run a VFP application as a service you need a helper application like SRVANY.EXE from the Windows Resource Kit. However, VFP 6 is not the most suitable version to do this. While you can turn a VFP 6 EXE into a service, it's very difficult to make it run stable, because VFP 6 was designed with desktop applications in mind. VFP 9 is much better in this regard.
Windows Service
NeilSt
Hoang Le