Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto start VFP application
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00728865
Message ID:
00728885
Views:
14
We've approached this by having a Win2K scheduled task that starts the VFP app every 5 minutes (or any number of minutes). The app uses a semaphore file to say that it's started and the second instance tries to open (or create) that file. If successfull, it continues with startup. If not it just shuts down.

You could easily check for additional criteria before starting up. We also have the app check a table for its own entry to check whether it should be active.

Using the scheduled task approach means that the user starting the app can be specified in the task schedule. Of course, if no one is logged in then the app starts on a non-visible desktop. This might not be the desired result for a kiosk app <g>.

Cheers,

Andrew

>Hi,
>
>Thank for your advise, so I must come out an service to check for my application status. Besides, that is there any other solution that you
>can advise for me as I am in a rush for this, no much time to look into
>coming out a service application.
>
>>Virusim
>>
>>As usual there are many solutions but one would be a watchdog application which checks whether the main app is running. If it finds that the main app is not running it would check for a shut down condition and, if found, wait until that condition no longer exist. Then it would restart the main app. This could all be done in a VFP app but perhaps a service would be best since it would run even if no user was logged on.
>>
>>Jos
>>
>>
>>>Hi,
>>>
>>>As I am written a kiosk application using VFP6, sometime, we
>>>need to auto shut down the application which can be easily done,
>>>but how do we auto start the application on Win2k platform ?
>>>Any API to do so or way.
>>>
>>>Any good suggestion on this area.
>>>
>>>Thank you


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Reply
Map
View

Click here to load this message in the networking platform