Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP6 run in background?
Message
From
20/03/2001 00:09:27
 
 
To
19/03/2001 15:45:31
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00486603
Message ID:
00486755
Views:
10
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform