>Hello all,
> We are working on a small program that will run once a day. We would like to get it to run off the system timer and execute at a certain time each day. Is there any way to get a foxpro program to run in the background? It would be perfect for this application. Thanks
Certainly; you can use the Sleep() API to make VFP not burn cycles while waiting, and can run it minimized, or with no visible component at all using SCREEN=OFF; it'd be best to simply launch the VFP app either with the NT/Win2K AT comand or the Task Scheduler, so that it is not resident constantly. If you use AT, be certain that the System id has the necessary permissions to run the job, and if network connections are needed, you'll want to establish them within your application, and use fully qualified paths so that you run independent of the state of the current user's pathing. You can adjust the priority that the VFP job runs at by firing a batch file and starting the application in the batch file with the START verb, specifying the priority, window state and the like.