Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using XPtaskscheduler
Message
De
18/12/2008 05:21:39
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Problem using XPtaskscheduler
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01368424
Message ID:
01368424
Vues:
92
I'm using the following code to auto create tasks in the Windows Task Scheduler :

loSched = CREATEOBJECT('Scheduler.SchAgent')
WITH loSched
.TaskName = "My task"
.StartTime = DATETIME()
.EXEName = "c:\capture.exe"
.UserName = "XXXX"
.Password = "xxxxxxxx"
.ScheduleType = 1
.Interval = 7
llResult = .CreateTask()
ENDWITH

When executing this code the task is created BUT i cannot execute the task. The status is "Cannot be started".
When i open the task and i (re)enter my password, the task works splendid. So it's a username/password-problem.

Does anyone know what to do with this ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform