PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 (with quotes)
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
Note: If you are using a domain, this domain must be specified in ScheduledTask.User.

Operating system required

The SchedulerXXX functions are not available in Windows NT if a version earlier than Internet Explorer 5.0 is installed.To create a scheduled task in Windows Vista (and later), you must have the "Administrator" rights.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment