Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Widows task scheduler
Message
De
24/12/2013 23:29:17
 
 
À
24/12/2013 22:41:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01590972
Message ID:
01590973
Vues:
96
This message has been marked as the solution to the initial question of the thread.
J'aime (1)
>Hi all:
>
>I'm trying to run a program (see below) that I BUILDed as a win32 executable. When I run it directly, it creates JOE.MEM and exits gracefully, but when I run with the Windows Task Scheduler, it hangs (the message "the task is currently running" appears in the task scheduler)and the file JOE.MEM is not created. Is there something I need to do to make it run in the background? Putting screen=off in the config.sys does not help.
>
>
>CLOSE ALL
>CLEAR MEMORY
>
>RESTORE FROM elsee ADDITIVE
>SAVE TO joe
>IF !FILE('lotexptest.txt')
>	QUIT
>endif
>
Some quick things to check:

1. Does the account you're using to run the scheduled job have sufficient privileges to the folder in question?

2. In the scheduled job, on the Actions tab, have you specified a "Start in" folder? Although it says "optional" in a lot of cases it's actually required. You should make it the same as the EXE folder if you expect your program to find the old mem file and create joe.mem in the same folder as the EXE. You can't use mapped network drives there because those mappings are not created or available in the new context that runs your scheduled job. Instead of a mapped drive you can use a UNC e.g. \\SomeServer\SomeShare.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform