Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp exe run as service on NT4
Message
 
 
À
07/09/2001 11:00:39
Information générale
Forum:
Windows
Catégorie:
Configuration
Divers
Thread ID:
00553805
Message ID:
00554403
Vues:
8
Hi!

If you have Windows NT Resource Kit, you can use the SRVAny.EXE tool that can help you run ANY program as a service.

But beware about a lot of pitfalls here. 2 of them:

1. When user log out, all applications ran under that user account are also closed. This is also for services, so configure your service to run using account that you know will never be used to log on on that machine.

2. SRVAny use TerminateProcess() Windows API function to finish the service application (for example, when server shutdown/restart). This is similar to how KILL utility works - it can stop the program from working at any moment, include at the moment when that program did not finished work correctly. For this one there is a solution that is somewhat tricky and complex. Let me know if you need such level of reliability, I will describe more...

>I want to run an vfp exe file as service on NT4 because I need that program ( who reads from an comm port) to run even if i'm not logged in .
>Thanks,Alina
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform