Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem using XPtaskscheduler
Message
 
 
À
18/12/2008 05:21:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
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:
01368436
Vues:
7
You can use Doug's Task Scheduler class

>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 ?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform