Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a VFP EXE on the VM Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01670603
Message ID:
01670610
Vues:
48
Dmitry,

You can schedule a regular FoxPro executable using windows task scheduler, it is very easy and works quite well.

There are few things I can think can give you troubles:

I would set up to run under a service account, you set it up in the "When running the task, use the following user account"

Remember that if you are not running with the interactive user account (as you should, a service account is better) then there will be no drive mapping, so if you are using s: mapped to \\server.domain\share in your code, then it is most likely to fail, unless you are mapping it at the start of your code or using UNC. Also I would check the "Run whether user is logged on or not" (I say most likely as I do not know if when you put a service account the OS might run a login script that maps the drive, but I would not trust this)

The other thing is that if the data resides on the network and there is some interruption when the task is running, it will hang, so I will use, in the settings tab, the "Stop the task if runs longer than" set it to a number you deem reasonable, the other setting you might want to change is "If the task is already running, then the following rule applies:", any value is good so you need to decide what is best for your particular case.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform