Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API_APPRUN issues with windows scheduler?
Message
 
To
20/06/2008 17:19:28
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01325528
Message ID:
01326087
Views:
32
>>>>>>I have a application that uses the API_APPRUN class. I have found some issues when I schedule a job to run and no user is signed on. It seems that the launchandwait() method loops. Has anyone experienced this or heard of this being an issue?
>>>>>>
>>>>>>The program that uses the API_APPRUN class works fine if I schedule and stay logged on....
>>>>>
>>>>>What is the OS? What is the exact command you're scheduling to run in the scheduler? Is there enough time between scheduled runs of this task for the task to complete?
>>>>
>>>>1. OS is XP SP2
>>>>2. The command is my VFP exe that uses the API_APPRUN class.
>>>>3. Yes - It runs within 2 Min.
>>>
>>>In the scheduler, are you supplying an account name and password that has enough privileges for your app to run as desired? If in doubt you could try using your account credentials.
>>
>>Yes account credentials fine its my pc i have admin. Its not an issue with running scheduler. Its an issue i think with the api. I can run the application via the scheduler when I'm signed on the pc but when I'm signed off the application runs until it uses the api. I'm calling the api method launchandwait(). The issue is it waits forever.
>
>At the risk of repeating myself, in the scheduler, are you supplying your own user name and password so the scheduled process can RunAs you when the time comes?

Yes
Previous
Reply
Map
View

Click here to load this message in the networking platform