ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Windows Scheduler functions
  • Elements that must be filled in the ScheduledTask structure
  • Operating system required
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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:
These structures must be reinitialized by SchedulerReset.
// 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
Component: wd290std.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/29/2022

Send a report | Local help