|
|
|
|
- Elements that must be filled in the ScheduledTask structure
- Operating system required
SchedulerAddTask (Function) In french: PlanificateurAjouteTâche Creates a task in the Windows scheduler (if this task does not already exist). All the parameters of this task must be defined before creating the task:
// Initialize the default values SchedulerReset() // Describe the task to add ScheduledTask.Application = "Calc.exe" // Path of the program ScheduledTask.User = "Janis" // User of the session ScheduledTask.Password = EDT_PWD // Password of the session ScheduledTask.Comment = "Calculation program" // Comment of the task ScheduledTask.DeleteWhenDone = False // Boolean set to True if the task must be deleted  // Add the task that was previously described SchedulerAddTask("Calculator")
Syntax
<Result> = SchedulerAddTask(<Task name>)
<Result>: Boolean - True if the task was added,
- False if an error occurred.
<Task name>: Character string Name of the task to create. This name will be used by all the functions for scheduler management. Remarks Elements that must be filled in the ScheduledTask structure To create a scheduled task, the following elements must be filled in the ScheduledTask structure: - ScheduledTask.Application.
- ScheduledTask.WorkingDirectory: This parameter is mandatory. If this parameter is not filled, it is automatically initialized with the directory specified in ScheduledTask.Application.
- ScheduledTask.User
Remark: If you are using a domain, this domain must be specified in ScheduledTask.User. Operating system required To create a scheduled task in Windows Vista (and later), you must have the "Administrator" rights. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|