Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem using XPtaskscheduler
Message
 
 
To
18/12/2008 05:21:39
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01368424
Message ID:
01368436
Views:
8
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform